-
Notifications
You must be signed in to change notification settings - Fork 0
/
unitTest.txt
43 lines (32 loc) · 2.72 KB
/
unitTest.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This program determines the US grade level for the english provided.
# This program works on basis of Coleman-Liau index. The Coleman-Liau index of a text is designed to output what (U.S.) grade level is needed to understand the text.
#Test Case1
Text Input: One fish. Two fish. Red fish. Blue fish.
Result US Grade Level: Before Grade 1
#Test Case2
Text Input: Would you like them here or there? I would not like them here or there. I would not like them anywhere.
Result US Grade Level: Grade 2
#Test Case3
Text Input: Congratulations! Today is your day. You're off to Great Places! You're off and away!
Result US Grade Level: Grade 3
#Test Case4
Text Input: Harry Potter was a highly unusual boy in many ways. For one thing, he hated the summer holidays more than any other time of year. For another, he really wanted to do his homework, but was forced to do it in secret, in the dead of the night. And he also happened to be a wizard.
Result US Grade Level: Grade 5
#Test Case5
Text Input: In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.
Result US Grade Level: Grade 7
#Test Case6
Text Input: Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, "and what is the use of a book," thought Alice "without pictures or conversation?"
Result US Grade Level: Grade 8
#Test Case7
Text Input: When he was nearly thirteen, my brother Jem got his arm badly broken at the elbow. When it healed, and Jem's fears of never being able to play football were assuaged, he was seldom self-conscious about his injury. His left arm was somewhat shorter than his right; when he stood or walked, the back of his hand was at right angles to his body, his thumb parallel to his thigh.
Result US Grade Level: Grade 8
#Test Case8
Text Input: There are more things in Heaven and Earth, Horatio, than are dreamt of in your philosophy.
Result US Grade Level: Grade 9
#Test Case9
Text Input: It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him.
Result US Grade Level: Grade 10
#Test Case10
Text Input: A large class of computational problems involve the determination of properties of graphs, digraphs, integers, arrays of integers, finite families of finite sets, boolean formulas and elements of other countable domains.
Result US Grade Level: Grade 16+