Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable finite type tests due to semtype changes #62

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading