Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Jul 23, 2024
1 parent c118256 commit 1ad410e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flytepropeller/pkg/compiler/validators/typing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ func TestSimpleLiteralCasting(t *testing.T) {
assert.True(t, castable, "Integers should be castable to other integers")
})

t.Run("BaseCase_Json", func(t *testing.T) {
castable := AreTypesCastable(
&core.LiteralType{
Type: &core.LiteralType_Simple{Simple: core.SimpleType_JSON},
},
&core.LiteralType{
Type: &core.LiteralType_Simple{Simple: core.SimpleType_JSON},
},
)
assert.True(t, castable, "Json should be castable to other Json")
})

t.Run("IntegerToFloat", func(t *testing.T) {
castable := AreTypesCastable(
&core.LiteralType{
Expand Down

0 comments on commit 1ad410e

Please sign in to comment.