mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
8 lines
308 B
Python
8 lines
308 B
Python
from kwic import kwic
|
|
|
|
empty_document = ""
|
|
design_words_doc = "Design is hard.\nLet's just implement."
|
|
|
|
if __name__ == "__main__":
|
|
assert(kwic(empty_document) == []) # Ensure empty input gives empty output
|
|
assert(kwic(design_words_doc) != []) # Ensure real input does not produce empty output |