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
void test1(void) { | |
Dictionary *english = create_dictionary("en"); | |
Dictionary *english_composite = create_composite_dictionary(english, english); | |
// we don't care whether these are actually spelled correctly or not. here, we only care that we get the same | |
// answers back in both cases | |
assert english.is_spelled_correctly("the") == english_composite.is_spelled_correctly("the"); | |
assert english.is_spelled_correctly("teh") == english_composite.is_spelled_correctly("teh"); | |
} |