-
Notifications
You must be signed in to change notification settings - Fork 12
/
deps.rs
38 lines (35 loc) · 1.16 KB
/
deps.rs
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
mod common;
use common::TestInterface;
fn classic(test: TestInterface) {
test.success()
.time_limit(1.0)
.memory_limit(64)
.max_score(100.0)
.subtask_scores(vec![30.0, 30.0, 40.0])
.must_compile("sol-.cpp")
.must_compile("sol-0.cpp")
.must_compile("sol-1.cpp")
.must_compile("sol-2.cpp")
.must_compile("sol-01.cpp")
.must_compile("sol-02.cpp")
.must_compile("sol-12.cpp")
.must_compile("sol-012.cpp")
.solution_score("sol-.cpp", vec![0.0, 0.0, 0.0])
.solution_score("sol-0.cpp", vec![0.0, 0.0, 0.0])
.solution_score("sol-1.cpp", vec![0.0, 30.0, 0.0])
.solution_score("sol-2.cpp", vec![0.0, 0.0, 0.0])
.solution_score("sol-01.cpp", vec![30.0, 30.0, 0.0])
.solution_score("sol-02.cpp", vec![0.0, 0.0, 0.0])
.solution_score("sol-12.cpp", vec![0.0, 30.0, 0.0])
.solution_score("sol-012.cpp", vec![30.0, 30.0, 40.0]);
}
#[test]
fn deps_local() {
better_panic::install();
classic(TestInterface::run_local("deps"));
}
#[test]
fn deps_remote() {
better_panic::install();
classic(TestInterface::run_remote("deps"));
}