Skip to content

Commit

Permalink
class packages are important in the tests, as indicated by the failur…
Browse files Browse the repository at this point in the history
…es that otherwise result
  • Loading branch information
jbrichau committed Feb 4, 2024
1 parent 5216ca7 commit edd9b01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ testReferencesNotPortableClass

| class |
class := self defineSubClassOf: #GRObject.
class package: 'SomeCategory' tag: ''.
self compile: 'invalid ^ Semaphore new' in: class.
self compile: 'valid ^ GRObject new' in: class.
self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ testSubclassesNotPortableClass

| class |
class := self defineSubClassOf: #Mutex.
class package: 'SomeCategory' tag: ''.
self
assertRule: GRSubclassesNotPortableClassRule
matches: { class }
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ testUsesNotPortableClass

| class |
class := self defineSubClassOf: #GRObject.
class package: 'SomeCategory' tag: ''.
self compile: 'invalid ^ Semaphore new' in: class.
self compile: 'valid ^ GRObject new' in: class.
self
Expand Down

0 comments on commit edd9b01

Please sign in to comment.