Lines Matching refs:n2
916 r := struct{ io.Reader }{strings.NewReader("1\n2\n")}
1153 {"newlines", "1\n2\n", 2},
1154 {"no final newline", "1\n2", 2},
1180 {"two lines two items", "1\n2\n", 1, false},
1205 {"newline in both", "1\n2", "%d\n%d\n", 2, true},
1206 {"newline in input", "1\n2", "%d %d", 1, false},
1207 {"space-newline in input", "1 \n2", "%d %d", 1, false},
1210 {"space-newline in both", "1 \n2", "%d \n%d", 2, true},
1211 {"extra space in format", "1\n2", "%d\n %d", 2, true},
1212 {"two extra spaces in format", "1\n2", "%d \n %d", 2, true},
1213 {"space vs newline 0000", "1\n2", "%d\n%d", 2, true},
1214 {"space vs newline 0001", "1\n2", "%d\n %d", 2, true},
1215 {"space vs newline 0010", "1\n2", "%d \n%d", 2, true},
1216 {"space vs newline 0011", "1\n2", "%d \n %d", 2, true},
1221 {"space vs newline 1000", "1 \n2", "%d\n%d", 2, true},
1222 {"space vs newline 1001", "1 \n2", "%d\n %d", 2, true},
1223 {"space vs newline 1010", "1 \n2", "%d \n%d", 2, true},
1224 {"space vs newline 1011", "1 \n2", "%d \n %d", 2, true},
1229 {"space vs newline no-percent 0000", "1\n2", "1\n2", 0, true},
1230 {"space vs newline no-percent 0001", "1\n2", "1\n 2", 0, true},
1231 {"space vs newline no-percent 0010", "1\n2", "1 \n2", 0, true},
1232 {"space vs newline no-percent 0011", "1\n2", "1 \n 2", 0, true},
1233 {"space vs newline no-percent 0100", "1\n 2", "1\n2", 0, false}, // fails: space after nl in input but not pattern
1234 {"space vs newline no-percent 0101", "1\n 2", "1\n2 ", 0, false}, // fails: space after nl in input but not pattern
1235 {"space vs newline no-percent 0110", "1\n 2", "1 \n2", 0, false}, // fails: space after nl in input but not pattern
1237 {"space vs newline no-percent 1000", "1 \n2", "1\n2", 0, true},
1238 {"space vs newline no-percent 1001", "1 \n2", "1\n 2", 0, true},
1239 {"space vs newline no-percent 1010", "1 \n2", "1 \n2", 0, true},
1240 {"space vs newline no-percent 1011", "1 \n2", "1 \n 2", 0, true},
1241 {"space vs newline no-percent 1100", "1 \n 2", "1\n2", 0, false}, // fails: space after nl in input but not pattern
1243 {"space vs newline no-percent 1110", "1 \n 2", "1 \n2", 0, false}, // fails: space after nl in input but not pattern