diff --git a/exercises/practice/knapsack/.meta/config.json b/exercises/practice/knapsack/.meta/config.json index 3300783..c29a1e2 100644 --- a/exercises/practice/knapsack/.meta/config.json +++ b/exercises/practice/knapsack/.meta/config.json @@ -11,9 +11,6 @@ ], "example": [ ".meta/example.lfe" - ], - "editor": [ - "include/item.lfe" ] }, "blurb": "Given a knapsack that can only carry a certain weight, determine which items to put in the knapsack in order to maximize their combined value.", diff --git a/exercises/practice/knapsack/.meta/example.lfe b/exercises/practice/knapsack/.meta/example.lfe index 071ad05..bc5b563 100644 --- a/exercises/practice/knapsack/.meta/example.lfe +++ b/exercises/practice/knapsack/.meta/example.lfe @@ -1,7 +1,7 @@ (defmodule knapsack (export (maximum-value 2))) -(include-lib "include/item.lfe") +(defrecord item weight value) (defun find-max (item last-values capacity) diff --git a/exercises/practice/knapsack/include/item.lfe b/exercises/practice/knapsack/include/item.lfe deleted file mode 100644 index e1a47ef..0000000 --- a/exercises/practice/knapsack/include/item.lfe +++ /dev/null @@ -1 +0,0 @@ -(defrecord item weight value) \ No newline at end of file diff --git a/exercises/practice/knapsack/test/knapsack-tests.lfe b/exercises/practice/knapsack/test/knapsack-tests.lfe index 0946aca..2f12072 100644 --- a/exercises/practice/knapsack/test/knapsack-tests.lfe +++ b/exercises/practice/knapsack/test/knapsack-tests.lfe @@ -2,9 +2,10 @@ (behaviour ltest-unit) (export all)) -(include-lib "include/item.lfe") (include-lib "ltest/include/ltest-macros.lfe") +(defrecord item weight value) + (deftest no-items (is-equal 0 (knapsack:maximum-value '() 100)))