mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Remove redundant fx test for issue 8664
The bug is already covered by the faster eval test in eval_test.zig. The fx platform test is not needed since the bug is purely in the interpreter's for loop element type handling.
This commit is contained in:
parent
a7ce3988ac
commit
c4e1e337eb
2 changed files with 0 additions and 28 deletions
|
|
@ -238,11 +238,6 @@ pub const io_spec_tests = [_]TestSpec{
|
|||
.io_spec = "0<short|1>short|0<|1>",
|
||||
.description = "Regression test: Stdin.line! in while loop with short input (small string optimization)",
|
||||
},
|
||||
.{
|
||||
.roc_file = "test/fx/issue8664.roc",
|
||||
.io_spec = "1>num: 8.0|1>num: 7.0|1>result: 7.0",
|
||||
.description = "Regression test: Issue #8664 - InvalidMethodReceiver when calling methods on elements from untyped list parameter",
|
||||
},
|
||||
};
|
||||
|
||||
/// Get the total number of IO spec tests
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
app [main!] { pf: platform "./platform/main.roc" }
|
||||
|
||||
import pf.Stdout
|
||||
|
||||
# Test for issue #8664: InvalidMethodReceiver crash
|
||||
# The bug occurs when calling .to_str() on elements from a list parameter
|
||||
# that doesn't have an explicit type annotation.
|
||||
|
||||
# No type annotation on calc - the parameter `line` has inferred type
|
||||
calc = |line| {
|
||||
var $num = 0
|
||||
for num in List.drop_last(line, 1) {
|
||||
$num = num
|
||||
Stdout.line!("num: ${num.to_str()}")
|
||||
}
|
||||
$num
|
||||
}
|
||||
|
||||
main! = || {
|
||||
line = [8, 7, 6]
|
||||
num = calc(line)
|
||||
Stdout.line!("result: ${num.to_str()}")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue