diff --git a/src/gol.gleam b/src/gol.gleam index 555e25a..ecf2658 100644 --- a/src/gol.gleam +++ b/src/gol.gleam @@ -2,7 +2,7 @@ //// //// Module: gol (Main) //// API: -//// * None +//// - main() -> Nil //// Internal: //// * None diff --git a/src/neighbourhoods.gleam b/src/neighbourhoods.gleam index eb88140..45c6787 100644 --- a/src/neighbourhoods.gleam +++ b/src/neighbourhoods.gleam @@ -22,8 +22,7 @@ pub type Neighbourhoods = /// Get the neighbourhoods of a grid. pub fn get(grid: gri.Grid) -> Neighbourhoods { - let transient_grid = gri.make_transient(grid) - get_inner(transient_grid, transient_grid, []) + get_inner(gri.make_proper(grid), gri.make_transient(grid), []) } // Private diff --git a/src/rule.gleam b/src/rule.gleam index cb85e32..5abdee7 100644 --- a/src/rule.gleam +++ b/src/rule.gleam @@ -3,6 +3,7 @@ //// Module: rule //// API: //// - Rule +//// - new() -> Rule //// - add_case(Rule, Neighbourhood, Cell) -> Rule //// - apply(Rule, Neighbourhood) -> Cell //// Internal: diff --git a/test/cell_test.gleam b/test/cell_test.gleam index c79305b..2dc9677 100644 --- a/test/cell_test.gleam +++ b/test/cell_test.gleam @@ -2,7 +2,12 @@ //// //// Module: cell_test //// API: -//// * None +//// - main() -> Nil +//// - new_test() -> Nil +//// - is_alive_test() -> Nil +//// - is_dead_test() -> Nil +//// - toggle_test() -> Nil +//// - get_location_test() -> Nil //// Internal: //// * None diff --git a/test/definitions_test.gleam b/test/definitions_test.gleam index 811225c..6e42425 100644 --- a/test/definitions_test.gleam +++ b/test/definitions_test.gleam @@ -2,7 +2,7 @@ //// //// Module: definitions_test //// API: -//// * None +//// - main() -> Nil //// Internal: //// * None diff --git a/test/gol_test.gleam b/test/gol_test.gleam index c72e395..3442c9d 100644 --- a/test/gol_test.gleam +++ b/test/gol_test.gleam @@ -2,7 +2,7 @@ //// //// Module: gol_test //// API: -//// * None +//// - main() -> Nil //// Internal: //// * None diff --git a/test/grid_test.gleam b/test/grid_test.gleam index 63dd76d..1505d35 100644 --- a/test/grid_test.gleam +++ b/test/grid_test.gleam @@ -2,7 +2,14 @@ //// //// Module: grid_test //// API: -//// * None +//// - 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 diff --git a/test/lib_test.gleam b/test/lib_test.gleam index 492ce0e..c741083 100644 --- a/test/lib_test.gleam +++ b/test/lib_test.gleam @@ -2,7 +2,9 @@ //// //// Module: lib_test //// API: -//// * None +//// - main() -> Nil +//// - add_unique_test() -> Nil +//// - remove_test() -> Nil //// Internal: //// * None diff --git a/test/location_test.gleam b/test/location_test.gleam index 8d60c4b..db7eb01 100644 --- a/test/location_test.gleam +++ b/test/location_test.gleam @@ -2,7 +2,10 @@ //// //// Module: location_test //// API: -//// * None +//// - main() -> Nil +//// - new_test() -> Nil +//// - get_x_test() -> Nil +//// - get_y_test() -> Nil //// Internal: //// * None diff --git a/test/neighbourhood_test.gleam b/test/neighbourhood_test.gleam index edbfc22..be77b6e 100644 --- a/test/neighbourhood_test.gleam +++ b/test/neighbourhood_test.gleam @@ -2,7 +2,8 @@ //// //// Module: neighbourhood_test //// API: -//// * None +//// - main() -> Nil +//// - get_test() -> Nil //// Internal: //// * None diff --git a/test/neighbourhoods_test.gleam b/test/neighbourhoods_test.gleam index 14e6323..16da36e 100644 --- a/test/neighbourhoods_test.gleam +++ b/test/neighbourhoods_test.gleam @@ -2,7 +2,8 @@ //// //// Module: neighbourhoods_test //// API: -//// * None +//// - main() -> Nil +//// - get_test() -> Nil //// Internal: //// * None diff --git a/test/rule_test.gleam b/test/rule_test.gleam index 62425a5..43b4730 100644 --- a/test/rule_test.gleam +++ b/test/rule_test.gleam @@ -2,7 +2,10 @@ //// //// Module: rule_test //// API: -//// * None +//// - main() -> Nil +//// - new_test() -> Nil +//// - add_case_test() -> Nil +//// - apply_test() -> Nil //// Internal: //// * None diff --git a/test/ruleset_test.gleam b/test/ruleset_test.gleam index a04e283..4f9a33f 100644 --- a/test/ruleset_test.gleam +++ b/test/ruleset_test.gleam @@ -2,7 +2,7 @@ //// //// Module: ruleset_test //// API: -//// * None +//// - main() -> Nil //// Internal: //// * None