Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Jan 17, 2024
1 parent 1211801 commit 9f49968
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/valid/src/traits.ri
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,3 @@ func ship(a: +Eq, b: +Eq) -> bool {
test "traits: default method" {
@assert(ship( Poketrait("Shell"), Poketrait("Shell") ));
}

#[default_value(IntegerValue(5))]
trait Integer {}

struct IntegerValue {
int: int32;
}

struct IntegerStruct {
i: +Integer;
}

test "traits with `default_value` attribute" {
is_ := IntegerStruct();
@assert(is_.i is IntegerValue(int_v) && int_v.int == 5);
}

0 comments on commit 9f49968

Please sign in to comment.