-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid_test.gleam
67 lines (56 loc) · 1.1 KB
/
grid_test.gleam
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//// test/grid_test.gleam
////
//// Module: grid_test
////
//// Test module for grid.
////
//// API:
//// - main() -> Nil
//// - new_test() -> Nil
//// - make_proper_test() -> Nil
//// - make_transient_test() -> Nil
//// - add_test() -> Nil
//// - get_test() -> Nil
//// - remove_at_location_test() -> Nil
//// - get_neighbours_test() -> Nil
//// Internal:
//// * None
// External imports:
import gleeunit as gle
import gleeunit/should as sho
// Local imports:
import grid as gri
// Public:
/// Setup for testing.
pub fn main() -> Nil {
gle.main()
}
/// Test the grid constructor.
pub fn new_test() -> Nil {
gri.new()
|> sho.equal([])
}
/// Test the make_proper function.
pub fn make_proper_test() -> Nil {
todo
}
/// Test the make_transient function.
pub fn make_transient_test() -> Nil {
todo
}
/// Test the add function.
pub fn add_test() -> Nil {
todo
}
/// Test the get function.
pub fn get_test() -> Nil {
todo
}
/// Test the remove_at_location function.
pub fn remove_at_location_test() -> Nil {
todo
}
/// Test the get_neighbours_test function.
pub fn get_neighbours_test() -> Nil {
todo
}