Skip to content

Commit

Permalink
feat(e2e,version): bump to 29.1 AND add e2e for the fix from prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emil14 committed Dec 28, 2024
1 parent cc06fbd commit 6e6ce2d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/classify_int/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This e2e test was added because of https://github.com/nevalang/neva/issues/816
1 change: 1 addition & 0 deletions e2e/classify_int/neva.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
neva: 0.29.0
15 changes: 15 additions & 0 deletions e2e/classify_int/src/main.neva
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {
fmt
@:src/utils
}

def Main(start any) (stop any) {
classify utils.ClassifyInt
println1 fmt.Println
println2 fmt.Println
---
:start -> -42 -> classify
classify:pos -> 'positive :)' -> println1
classify:neg -> 'negative :(' -> println2
[println1, println2] -> :stop
}
6 changes: 6 additions & 0 deletions e2e/classify_int/src/utils/utils.neva
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub def ClassifyInt(data int) (neg any, pos any) {
(:data >= 0) -> switch {
true -> :pos
_ -> :neg
}
}
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package pkg

// Version is the current version of the language and stdlib.
// Don't forget to update it before release new tag.
var Version = "0.29.0" //nolint:gochecknoglobals
var Version = "0.29.1" //nolint:gochecknoglobals

0 comments on commit 6e6ce2d

Please sign in to comment.