Skip to content

Commit

Permalink
chore: move test to compile_success_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jun 18, 2024
1 parent 75bfd13 commit c4b3009
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "comptime_array_len"
type = "bin"
authors = [""]

[dependencies]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
comptime
{
assert_eq([1, 2, 3].len(), 3);
}
}
4 changes: 0 additions & 4 deletions test_programs/execution_success/array_len/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ fn nested_call<N>(b: [Field; N]) -> u32 {
}

fn main(x: Field, len3: [u8; 3], len4: [Field; 4]) {
comptime
{
assert_eq([1, 2, 3].len(), 3);
}
assert(len_plus_1(len3) == 4);
assert(len_plus_1(len4) == 5);
assert(add_lens(len3, len4) == 7);
Expand Down

0 comments on commit c4b3009

Please sign in to comment.