Skip to content

Commit

Permalink
Merge pull request #62 from SasinduDilshara/disable_finite_tests
Browse files Browse the repository at this point in the history
Disable finite type tests due to semtype changes
  • Loading branch information
chiranSachintha authored Dec 4, 2024
2 parents 14aff6e + d7900ff commit e1717b5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ballerina/tests/test_finite_types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ enum EnumA {

type FiniteType true|"A"|1|2;

@test:Config
@test:Config {enable: false}
function testFiniteTypes() returns error? {
record {|
EnumA a;
Expand All @@ -37,7 +37,7 @@ function testFiniteTypes() returns error? {
test:assertEquals(r, {a: "A", b: "B", nested: {c: "B", d: "B"}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypesWithNestedRecords() returns error? {
record {|
EnumA a;
Expand All @@ -51,7 +51,7 @@ function testFiniteTypesWithNestedRecords() returns error? {
test:assertEquals(r, {a: "C2", b: 1, nested: {c: 2, d: "A", e: true}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypeArrays() returns error? {
record {|
EnumA[] a;
Expand All @@ -64,7 +64,7 @@ function testFiniteTypeArrays() returns error? {
test:assertEquals(r, {a: ["A", "A"], b: ["B", "B"], nested: {c: ["B", "B"], d: ["B", "B"]}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypeArrays2() returns error? {
record {|
EnumA[] a;
Expand All @@ -78,7 +78,7 @@ function testFiniteTypeArrays2() returns error? {
test:assertEquals(r, {a: ["C2", "C2"], b: [1, 1], nested: {c: [2, 2], d: ["A", "A"], e: [true, true]}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypesWithXmlString() returns error? {
record {|
EnumA a;
Expand All @@ -91,7 +91,7 @@ function testFiniteTypesWithXmlString() returns error? {
test:assertEquals(r, {a: "A", b: "B", nested: {c: "B", d: "B"}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypesWithNestedRecordsWithXmlString() returns error? {
record {|
EnumA a;
Expand All @@ -105,7 +105,7 @@ function testFiniteTypesWithNestedRecordsWithXmlString() returns error? {
test:assertEquals(r, {a: "C2", b: 1, nested: {c: 2, d: "A", e: true}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypeArraysWithXmlString() returns error? {
record {|
EnumA[] a;
Expand All @@ -118,7 +118,7 @@ function testFiniteTypeArraysWithXmlString() returns error? {
test:assertEquals(r, {a: ["A", "A"], b: ["B", "B"], nested: {c: ["B", "B"], d: ["B", "B"]}});
}

@test:Config
@test:Config {enable: false}
function testFiniteTypeArraysWithXmlString2() returns error? {
record {|
EnumA[] a;
Expand All @@ -143,7 +143,7 @@ type NestedRec record {|
EnumA d;
|};

@test:Config
@test:Config {enable: false}
function testFiniteTypesWithNameAnnotations() returns error? {
record {|
EnumA a;
Expand All @@ -155,7 +155,7 @@ function testFiniteTypesWithNameAnnotations() returns error? {

type FiniteValue 100f;

@test:Config
@test:Config {enable: false}
function testRecordFieldWithSingleFiniteType() returns error? {
record {|
EnumA a;
Expand All @@ -168,7 +168,7 @@ function testRecordFieldWithSingleFiniteType() returns error? {
test:assertEquals(r, {a: "A", b: "A", nested: {c: 100f, d: "B"}});
}

@test:Config
@test:Config {enable: false}
function testRecordFieldWithSingleFiniteType2() returns error? {
record {|
100f a;
Expand All @@ -183,7 +183,7 @@ function testRecordFieldWithSingleFiniteType2() returns error? {
test:assertEquals(r, {a: 100f, b: 200.1d, c: 100d, d: 200.1f, e: 100f, f: 200.1d, g: 100d, h: 200.1f});
}

@test:Config
@test:Config {enable: false}
function testRecordFieldWithSingleFiniteType3() returns error? {
record {|
100f a;
Expand All @@ -198,7 +198,7 @@ function testRecordFieldWithSingleFiniteType3() returns error? {
test:assertEquals((<Error>r2).message(), "'string' value '100.01' cannot be converted to '100d'");
}

@test:Config
@test:Config {enable: false}
function testRecordFieldWithSingleFiniteType4() returns error? {
record {|
200.1d|100f a;
Expand Down

0 comments on commit e1717b5

Please sign in to comment.