Skip to content

Commit

Permalink
add failing test for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
hidetatz committed Sep 7, 2023
1 parent f58529c commit b64b1e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
File renamed without changes.
13 changes: 13 additions & 0 deletions tests/struct2.sb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import assert

as = assert.assert

import struct1

p = struct1.person{name: "alice", age: 3}
as("alice", p.name)
as(3, p.age)
p.birthday()
as(4, p.age)

print("struct2 test succeeded")

0 comments on commit b64b1e0

Please sign in to comment.