Rework acceptance test 014 to smaller reproducible scenario
This commit is contained in:
parent
7c54283e69
commit
bd956efd36
|
@ -1,17 +1,7 @@
|
||||||
pub fn range(from: Int, to: Int) -> List<Int> {
|
|
||||||
if from > to {
|
|
||||||
[]
|
|
||||||
} else {
|
|
||||||
[from, ..range(from + 1, to)]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
test range_1() {
|
|
||||||
range(0, 2) == [0, 1, 2]
|
|
||||||
}
|
|
||||||
|
|
||||||
// NOTE:
|
// NOTE:
|
||||||
// Somehow, the left-hand evaluates to: [#02, #01, #00, #32]
|
// Somehow, the left-hand evaluates to: [#00, #20, #21]
|
||||||
test range_2() {
|
// whereas the right-hand evaluates to: [#21, #20, #00]
|
||||||
range(0 - 1, 2) == [0 - 1, 0, 1, 2]
|
//
|
||||||
|
test foo() {
|
||||||
|
[0 - 2, 0 - 1, 0] == [-2, -1, 0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue