Files
judge/example/lab1.jdg
2026-04-05 18:20:42 +03:00

61 lines
1020 B
Plaintext

build "go build -o solution ."
timeout 10s
group("basic") {
weight = 0.2
timeout = 2s
test("empty one element") {
stdin = "1\n42\n"
stdout = "42\n"
}
test("already sorted") {
stdin = "3\n1 2 3\n"
stdout = "1 2 3\n"
}
test("reverse order") {
stdin = "4\n4 3 2 1\n"
stdout = "1 2 3 4\n"
}
}
group("main") {
weight = 0.5
test("basic") {
stdin = "5\n1 3 2 5 4\n"
stdout = "1 2 3 4 5\n"
}
test("negative numbers") {
stdin = "5\n-3 1 -1 0 2\n"
stdout = "-3 -1 0 1 2\n"
}
test("same numbers") {
stdin = "4\n5 5 5 5\n"
stdout = "5 5 5 5\n"
}
test("multiline stdin") {
stdin = """
6
100 -50 0 75 -25 50
"""
stdout = "-50 -25 0 50 75 100\n"
}
}
group("file-pattern") {
weight = 0.3
timeout = 5s
pattern {
input = "testdata/*/input.txt"
output = "testdata/*/output.txt"
}
}