Skip to content

Commit

Permalink
Merge pull request #1261 from MaryamZi/fix-tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
MaryamZi authored Aug 7, 2023
2 parents 749bf5e + 9af63a5 commit c3376d7
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:SIGNED16_MAX_VALUE to an incompatible type.
Labels: int:Signed16, int:SIGNED16_MAX_VALUE, string
Labels: int:Signed8, int:SIGNED16_MAX_VALUE, string

function errorFunction() {
int:Signed16 _ = int:SIGNED16_MAX_VALUE; // @error int is not a subtype of int:Signed16
string _ = int:SIGNED16_MAX_VALUE; // @error int is not a subtype of string
int:Signed8 _ = int:SIGNED16_MAX_VALUE; // @error int:SIGNED16_MAX_VALUE does not belong to int:Signed8
string _ = int:SIGNED16_MAX_VALUE; // @error int:SIGNED16_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ function init() {

Test-Case: error
Description: Test assigning int:SIGNED16_MIN_VALUE to an incompatible type.
Labels: int:Signed16, int:SIGNED16_MIN_VALUE, string
Labels: int:Signed8, int:SIGNED16_MIN_VALUE, string

function init() {
int:Signed16 _ = int:SIGNED16_MIN_VALUE; // @error int is not a subtype of int:Signed16
string _ = int:SIGNED16_MIN_VALUE; // @error int is not a subtype of string
int:Signed8 _ = int:SIGNED16_MIN_VALUE; // @error int:SIGNED16_MIN_VALUE does not belong to int:Signed8
string _ = int:SIGNED16_MIN_VALUE; // @error int:SIGNED16_MIN_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:SIGNED32_MAX_VALUE to an incompatible type.
Labels: int:Signed32, int:SIGNED32_MAX_VALUE, string
Labels: int:Signed16, int:SIGNED32_MAX_VALUE, string

function errorFunction() {
int:Signed32 _ = int:SIGNED32_MAX_VALUE; // @error int is not a subtype of int:Signed32
string _ = int:SIGNED32_MAX_VALUE; // @error int is not a subtype of string
int:Signed16 _ = int:SIGNED32_MAX_VALUE; // @error int:SIGNED32_MAX_VALUE does not belong to int:Signed16
string _ = int:SIGNED32_MAX_VALUE; // @error int:SIGNED32_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:SIGNED32_MIN_VALUE with an incompatible type.
Labels: int:Signed32, int:SIGNED32_MIN_VALUE, string
Labels: int:Signed16, int:SIGNED32_MIN_VALUE, string

function errorFunction() {
int:Signed32 _ = int:SIGNED32_MIN_VALUE; // @error int is not a subtype of int:Signed32
string _ = int:SIGNED32_MIN_VALUE; // @error int is not a subtype of string
int:Signed16 _ = int:SIGNED32_MIN_VALUE; // @error int:SIGNED32_MIN_VALUE does not belong to int:Signed16
string _ = int:SIGNED32_MIN_VALUE; // @error int:SIGNED32_MIN_VALUE does not belong to string
}

Test-Case: error
Expand Down
6 changes: 3 additions & 3 deletions conformance/lang/lang-library/lang.int/signed8_max_value.balt
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:SIGNED8_MAX_VALUE to an incompatible type.
Labels: int:Signed8, int:SIGNED8_MAX_VALUE, string
Labels: int:SIGNED8_MAX_VALUE, singleton-type, string, union-type

function errorFunction() {
int:Signed8 _ = int:SIGNED8_MAX_VALUE; // @error int is not a subtype of int:Signed8
string _ = int:SIGNED8_MAX_VALUE; // @error int is not a subtype of string
1|2 _ = int:SIGNED8_MAX_VALUE; // @error int:SIGNED8_MAX_VALUE does not belong to 1|2
string _ = int:SIGNED8_MAX_VALUE; // @error int:SIGNED8_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down
6 changes: 3 additions & 3 deletions conformance/lang/lang-library/lang.int/signed8_min_value.balt
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:SIGNED8_MIN_VALUE to an incompatible type.
Labels: int:Signed8, int:SIGNED8_MIN_VALUE, string
Labels: int:SIGNED8_MIN_VALUE, singleton-type, string, union-type

function errorFunction() {
int:Signed8 _ = int:SIGNED8_MIN_VALUE; // @error int is not a subtype of int:Signed8
string _ = int:SIGNED8_MIN_VALUE; // @error int is not a subtype of string
1|2 _ = int:SIGNED8_MIN_VALUE; // @error int:SIGNED8_MIN_VALUE does not belong to 1|2
string _ = int:SIGNED8_MIN_VALUE; // @error int:SIGNED8_MIN_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:UNSIGNED16_MAX_VALUE to an incompatible type.
Labels: int:Unsigned16, int:UNSIGNED16_MAX_VALUE, string
Labels: int:Unsigned8, int:UNSIGNED16_MAX_VALUE, string

function errorFunction() {
int:Unsigned16 _ = int:UNSIGNED16_MAX_VALUE; // @error int is not a subtype of int:Unsigned16
string _ = int:UNSIGNED16_MAX_VALUE; // @error int is not a subtype of string
int:Unsigned8 _ = int:UNSIGNED16_MAX_VALUE; // @error int:UNSIGNED16_MAX_VALUE does not belong to int:Unsigned8
string _ = int:UNSIGNED16_MAX_VALUE; // @error int:UNSIGNED16_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:UNSIGNED32_MAX_VALUE to an incompatible type.
Labels: int:Unsigned32, int:UNSIGNED32_MAX_VALUE, string
Labels: int:Unsigned16, int:UNSIGNED32_MAX_VALUE, string

function errorFunction() {
int:Unsigned32 _ = int:UNSIGNED32_MAX_VALUE; // @error int is not a subtype of int:Unsigned32
string _ = int:UNSIGNED32_MAX_VALUE; // @error int is not a subtype of string
int:Unsigned16 _ = int:UNSIGNED32_MAX_VALUE; // @error int:UNSIGNED32_MAX_VALUE does not belong to int:Unsigned16
string _ = int:UNSIGNED32_MAX_VALUE; // @error int:UNSIGNED32_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ function errorFunction() {

Test-Case: error
Description: Test assigning int:UNSIGNED8_MAX_VALUE to an incompatible type.
Labels: int:Unsigned8, int:UNSIGNED8_MAX_VALUE, string
Labels: int:Signed8, int:UNSIGNED8_MAX_VALUE, string

function errorFunction() {
int:Unsigned8 _ = int:UNSIGNED8_MAX_VALUE; // @error int is not a subtype of int:Unsigned8
string _ = int:UNSIGNED8_MAX_VALUE; // @error int is not a subtype of string
int:Signed8 _ = int:UNSIGNED8_MAX_VALUE; // @error int:UNSIGNED8_MAX_VALUE does not belong to int:Signed8
string _ = int:UNSIGNED8_MAX_VALUE; // @error int:UNSIGNED8_MAX_VALUE does not belong to string
}

Test-Case: error
Expand Down

0 comments on commit c3376d7

Please sign in to comment.