Skip to content

Commit

Permalink
add reassignment test
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 22, 2023
1 parent 34d6628 commit 4666e8d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/kgtests/language/test_reassign.kg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

a::10
t("a=10"; a; 10)

a::12
t("a=12"; a; 12)

.pyf("math";"pi")

a::pi
t("a=math.pi"; a; pi)

a::{pi}
t("a()=math.pi"; a(); pi)

a::{2*pi}
t("a()=math.pi"; a(); 2*pi)

0 comments on commit 4666e8d

Please sign in to comment.