Skip to content

Commit

Permalink
[dylan,tests] Fix range size mismatch tests
Browse files Browse the repository at this point in the history
* sources/dylan/apple-dylan-test-suite/test-range.dylan
  Check for error raised then range's inferred and specified size mismatch
  • Loading branch information
abeaumont committed Mar 21, 2016
1 parent d170b6c commit 3ebc72c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sources/dylan/apple-dylan-test-suite/test-range.dylan
Expand Up @@ -50,11 +50,11 @@ end test range-4;
// not except through and up-to in a single expression
//
define test range-5 (description: "Through:, by:, and size:")
check-true("", range(to: 6, by: 2, size: 3) = #(0, 2, 4));
check-true("", range(to: 6, by: 2, size: 5) = #(0, 2, 4, 6));
check-true("", range(to: 6, by: 2, size: 3) = #(0, 2, 4));
check-true("", range(to: 6, by: -2, size: 5) = #());
check-true("", range(to: -6, by: -2, size: 3) = #(0, -2, -4));
check-condition("", <error>, range(to: 6, by: 2, size: 3));
check-condition("", <error>, range(to: 6, by: 2, size: 3));
check-condition("", <error>, range(to: -6, by: -2, size: 3));
check-condition("", <error>, range(to: 6, by: 2, size: 5));
check-condition("", <error>, range(to: 6, by: -2, size: 5));
end test range-5;

// member? range
Expand Down

0 comments on commit 3ebc72c

Please sign in to comment.