-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Artur Ciocanu
committed
Dec 16, 2023
1 parent
43c90a0
commit 97ff27b
Showing
8 changed files
with
927 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { isReservedScalaKeyword } from '../../../src/generators/scala/Constants'; | ||
|
||
describe('Reserved keywords', () => { | ||
it('should return true if the word is a reserved keyword', () => { | ||
expect(isReservedScalaKeyword('abstract')).toBe(true); | ||
expect(isReservedScalaKeyword('type')).toBe(true); | ||
}); | ||
|
||
it('should return false if the word is not a reserved keyword', () => { | ||
expect(isReservedScalaKeyword('dinosaur')).toBe(false); | ||
}); | ||
}); |
Oops, something went wrong.