-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get started on additional letter sets
- Loading branch information
1 parent
b3a5f4d
commit 3b93be6
Showing
6 changed files
with
92 additions
and
120 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 |
---|---|---|
@@ -1,74 +1,74 @@ | ||
package langgen; | ||
|
||
import massive.munit.Assert; | ||
import vantreeseba.langgen.*; | ||
import dropecho.langgen.*; | ||
|
||
class LanguageTest { | ||
public var language:Language; | ||
|
||
@BeforeClass | ||
public function suiteSetup() { | ||
language = new Language(); | ||
} | ||
@BeforeClass | ||
public function suiteSetup() {} | ||
|
||
@Before | ||
public function setup() {} | ||
@Before | ||
public function setup() { | ||
language = new Language(); | ||
} | ||
|
||
@Test | ||
public function canInstantiate() { | ||
Assert.isNotNull(language); | ||
} | ||
@Test | ||
public function canInstantiate() { | ||
Assert.isNotNull(language); | ||
} | ||
|
||
@Test | ||
public function createSyllable() { | ||
var syl = language.createSyllable(); | ||
Assert.isNotNull(syl); | ||
} | ||
@Test | ||
public function createSyllable() { | ||
var syl = language.createSyllable(); | ||
Assert.isNotNull(syl); | ||
} | ||
|
||
@Test | ||
public function createWord() { | ||
var syl = language.createWord(); | ||
Assert.isNotNull(syl); | ||
} | ||
@Test | ||
public function createWord() { | ||
var syl = language.createWord(); | ||
Assert.isNotNull(syl); | ||
} | ||
|
||
@Test | ||
public function createWordTwiceShouldGiveSameWord() { | ||
var word = language.createWord("city"); | ||
var word2 = language.createWord("city"); | ||
@Test | ||
public function createWordTwiceShouldGiveSameWord() { | ||
var word = language.createWord("city"); | ||
var word2 = language.createWord("city"); | ||
|
||
Assert.areEqual(word, word2); | ||
} | ||
Assert.areEqual(word, word2); | ||
} | ||
|
||
@Test | ||
public function createPhrase() { | ||
var phrase = language.createPhrase(); | ||
@Test | ||
public function createPhrase() { | ||
var phrase = language.createPhrase(); | ||
|
||
Assert.isNotNull(phrase); | ||
} | ||
Assert.isNotNull(phrase); | ||
} | ||
|
||
@Test | ||
public function createPhraseWithKey() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
@Test | ||
public function createPhraseWithKey() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
|
||
Assert.isNotNull(phrase); | ||
} | ||
Assert.isNotNull(phrase); | ||
} | ||
|
||
@Test | ||
public function createPhraseWithKeyAgain() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
@Test | ||
public function createPhraseWithKeyAgain() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
|
||
Assert.isNotNull(phrase); | ||
} | ||
Assert.isNotNull(phrase); | ||
} | ||
|
||
@Test | ||
public function createPhraseWithKeyAgainAndTranslate() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
@Test | ||
public function createPhraseWithKeyAgainAndTranslate() { | ||
var word = language.createWord("city"); | ||
var phrase = language.createPhrase("city"); | ||
|
||
var translated = language.translate(phrase); | ||
var translated = language.translate(phrase); | ||
|
||
Assert.isNotNull(translated); | ||
} | ||
Assert.isNotNull(translated); | ||
} | ||
} |
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