Commit 27308077 authored by Joachim Schunk's avatar Joachim Schunk

fix error-relative and naming in tests

parent 59d96307
Pipeline #47638 passed with stages
in 1 minute and 52 seconds
......@@ -29,7 +29,7 @@
[{:id "ae2018-06-05T13-30-36-G__69"
:name "calc_1"
:number "5"
:error-relative "2"
:error-relative 2
:error nil
:correct-points 2
:incorrect-points 0}
......@@ -64,14 +64,14 @@
:name "calc_1"
:number {:significand "5" :order-of-magnitude "0"}
:units []
:error-relative "2"
:error-relative 2
:correct-points 2
:incorrect-points 0}
{:id "ae2018-06-05T13-31-29-G__79"
:name "calc_2"
:number {:significand "3" :order-of-magnitude "1"}
:units [{:prefix "µ", :unit "g", :expo "2"}]
:error-relative "1"
:error-relative 1
:correct-points 2
:incorrect-points 0}]}
:authoring
......@@ -101,7 +101,7 @@
[{:id "ae2018-06-05T13-30-36-G__69"
:name "calc_1"
:number "5"
:error-relative "2"
:error-relative 2
:error nil
:correct-points 2
:incorrect-points 0}
......@@ -135,13 +135,13 @@
[{:id "ae2018-06-05T13-30-36-G__69"
:name "calc_1"
:number {:significand "5" :order-of-magnitude "0"}
:error-relative "2"
:error-relative 2
:correct-points 2
:incorrect-points 0}
{:id "ae2018-06-05T13-31-29-G__79"
:name "calc_2"
:number {:significand "3" :order-of-magnitude "0"}
:error-relative "1"
:error-relative 1
:correct-points 2
:incorrect-points 0}]}
:authoring
......@@ -149,22 +149,22 @@
:exercise-scheme
{:type "calculation" :version exercise-scheme-version}})
(deftest multistep-calculation-migrate-1
(deftest calculation-migrate-1
(testing "checker - multistep-calculation-migrate-1"
(let [differences (diff (migrate-exercise old-scheme-full) new-scheme-full)]
(is (= [nil nil] [(first differences) (second differences)])))))
(deftest multistep-calculation-migrate-2
(deftest calculation-migrate-2
(testing "checker - multistep-calculation-migrate-2"
(let [differences (diff (migrate-exercise new-scheme-full) new-scheme-full)]
(is (= [nil nil] [(first differences) (second differences)])))))
(deftest multistep-calculation-migrate-3
(deftest calculation-migrate-3
(testing "checker - multistep-calculation-migrate-3"
(let [differences (diff (migrate-exercise old-scheme-minimal) new-scheme-minimal)]
(is (= [nil nil] [(first differences) (second differences)])))))
(deftest multistep-calculation-migrate-4
(deftest calculation-migrate-4
(testing "checker - multistep-calculation-migrate-4"
(let [differences (diff (migrate-exercise new-scheme-minimal) new-scheme-minimal)]
(is (= [nil nil] [(first differences) (second differences)])))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment