Permalink
Browse files

Grant basic score for all applications

Fixes #1.
  • Loading branch information...
1 parent dfa2080 commit 13841b872eed17048eb17a813192ff4eadd63bc6 @lvh committed Mar 5, 2014
Showing with 4 additions and 3 deletions.
  1. +2 −1 src/hood/core.clj
  2. +2 −2 test/hood/core_test.clj
View
3 src/hood/core.clj
@@ -2,7 +2,8 @@
(:require [clojure.set :refer [difference]]))
(def score-funcs
- [[5 (fn [a] (if (:student a) 1 0))]])
+ [[1 (constantly 1)]
+ [5 (fn [a] (if (:student a) 1 0))]])
(defn score*
"Computes the score of an allocation."
View
4 test/hood/core_test.clj
@@ -4,9 +4,9 @@
(deftest score-test
(testing "scores don't fail on empty apps"
- (is (= (score* {}) 0)))
+ (is (= (score* {}) 1)))
(testing "a student"
- (is (= (score* {:student :true}) 5))))
+ (is (= (score* {:student :true}) 6))))
(deftest needs-alloc?-test
(testing "is reviewed"

0 comments on commit 13841b8

Please sign in to comment.