Skip to content

Commit

Permalink
ci: fix vlib/v/gen/js/jsgen_test.v errors in js.v and option.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Sep 30, 2023
1 parent d850c46 commit 7d1eab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vlib/v/gen/js/tests/js.v
Expand Up @@ -146,7 +146,7 @@ fn error_if_even(num int) !int {
return num
}

fn propagation() ? {
fn propagation() ! {
println('Propagation test:')
return error('"Task failed successfully" - Windows XP')
}
4 changes: 2 additions & 2 deletions vlib/v/gen/js/tests/option.v
Expand Up @@ -16,14 +16,14 @@ fn try_numbers() ? {
}
}

fn error_if_even(num int) ?int {
fn error_if_even(num int) !int {
if num % 2 == 0 {
return error('number is even')
}
return num
}

fn error_if_prime(num int) ?int {
fn error_if_prime(num int) !int {
for i in 2 .. num {
if num % i == 0 {
return error('${num} is prime')
Expand Down

0 comments on commit 7d1eab7

Please sign in to comment.