Skip to content

Commit

Permalink
Fix test with union types
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Nov 20, 2024
1 parent 06ef0b9 commit 31056c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/tests/from_json_string_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ isolated function testParseStringNegative4() returns Error? {

Union|Error y = parseString(str);
test:assertTrue(y is Error);
test:assertEquals((<Error>y).message(), "incompatible expected type 'ballerina/data.jsondata:0:Union' for value '{\"name\":\"John\"}'");
test:assertEquals((<Error>y).message(), "incompatible expected type 'ballerina/data.jsondata:1:Union' for value '{\"name\":\"John\"}'");

table<RN2>|Error z = parseString(str);
test:assertTrue(z is Error);
Expand Down

0 comments on commit 31056c4

Please sign in to comment.