-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Also added a simple test case to stabilize the keywords by count.
- Loading branch information
1 parent
4fdf31a
commit 1f99f00
Showing
4 changed files
with
234 additions
and
6 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
30 changes: 30 additions & 0 deletions
30
language/shared/src/test/scala/com/ossuminc/riddl/language/parsing/KeywordsTest.scala
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,30 @@ | ||
/* | ||
* Copyright 2019 Ossum, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.ossuminc.riddl.language.parsing | ||
|
||
import com.ossuminc.riddl.utils.AbstractTestingBasis | ||
|
||
class KeywordsTest extends AbstractTestingBasis { | ||
|
||
"Keyword" should { | ||
"produce all keywords" in { | ||
Keyword.allKeywords.size must be(139) | ||
} | ||
} | ||
|
||
"Punctuation" should { | ||
"produce all punctuation marks" in { | ||
Punctuation.allPunctuation.size must be (17) | ||
} | ||
} | ||
|
||
"Readability" should { | ||
"produce all readability words" in { | ||
Readability.allReadability.size must be(18) | ||
} | ||
} | ||
} |