Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsainati1 committed Oct 19, 2023
1 parent 8e04195 commit 1806a58
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 84 deletions.
4 changes: 2 additions & 2 deletions runtime/entitlements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestRuntimeAccountEntitlementAttachmentMap(t *testing.T) {
access(all) resource R {}
access(M) attachment A for R {
access(mapping M) attachment A for R {
access(Y) fun foo() {}
}
Expand Down Expand Up @@ -1172,7 +1172,7 @@ func TestRuntimeImportedEntitlementMapInclude(t *testing.T) {
}
access(all) struct S {
access(M) fun performMap(): auth(M) &Int {
access(mapping M) fun performMap(): auth(mapping M) &Int {
return &1
}
}
Expand Down
6 changes: 3 additions & 3 deletions runtime/tests/interpreter/attachments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1956,13 +1956,13 @@ func TestInterpretForEachAttachment(t *testing.T) {
E -> Y
}
struct S {}
access(M) attachment A for S {
access(mapping M) attachment A for S {
access(F) fun foo(_ x: Int): Int { return 7 + x }
}
access(N) attachment B for S {
access(mapping N) attachment B for S {
access(Y) fun foo(): Int { return 10 }
}
access(O) attachment C for S {
access(mapping O) attachment C for S {
access(Y) fun foo(_ x: Int): Int { return 8 + x }
}
fun test(): Int {
Expand Down
Loading

0 comments on commit 1806a58

Please sign in to comment.