summaryrefslogtreecommitdiff
path: root/tests/features/test_enum_tuples.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features/test_enum_tuples.zc')
-rw-r--r--tests/features/test_enum_tuples.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_enum_tuples.zc b/tests/features/test_enum_tuples.zc
index 12d9088..7e43bad 100644
--- a/tests/features/test_enum_tuples.zc
+++ b/tests/features/test_enum_tuples.zc
@@ -5,9 +5,9 @@ enum Shape {
}
fn main() {
- var r = Shape.Rect(10.0, 20.0);
+ let r = Shape.Rect(10.0, 20.0);
- var matched = 0;
+ let matched = 0;
match r {
Shape::Rect(w, h) => {
assert(w == 10.0, "w == 10.0");
@@ -20,7 +20,7 @@ fn main() {
}
assert(matched == 1, "Matched Rect");
- var c = Shape.Circle(5.0);
+ let c = Shape.Circle(5.0);
match c {
Shape::Circle(val) => {
assert(val == 5.0, "val == 5.0");