Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikhor Shams Wahed committed Apr 18, 2019
1 parent 9700c5c commit f93ef1d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MODULES=gui marketmaker trader command parse stats main
MODULES=gui marketmaker trader command parse stats main authors
OBJECTS=$(MODULES:=.cmo)
MLS=$(MODULES:=.ml)
MLIS=$(MODULES:=.mli)
Expand Down Expand Up @@ -26,7 +26,7 @@ finalcheck: check
bash finalcheck.sh

zip:
zip adv.zip *.ml* *.json _tags Makefile
zip market.zip *.ml* *.json _tags Makefile

docs: docs-public docs-private

Expand Down
2 changes: 2 additions & 0 deletions authors.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(* TODO: set the value below *)
let hours_worked = [12; 04; 08]
11 changes: 11 additions & 0 deletions authors.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(**
Metadata about this submission.
@author TODO All author names and NetIDs.
Sameer Lal (sjl328)
Ryan Richardson (rrr225)
Shikhor Wahed (ssw77)
*)

(** [hours_worked] is a list of the number of hours each team member
worked on this assignment. *)
val hours_worked : int list
29 changes: 15 additions & 14 deletions test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
TESTING SUITE
********************************************************************)
open OUnit2
open Yojson.Basic.Util
open Trader
open Marketmaker
open Command
Expand Down Expand Up @@ -220,7 +221,7 @@ let make_from_json_test
(market : Yojson.Basic.t )
(expected_output : Parse.t ): test =
name >:: (fun _ -> assert_equal expected_output (Parse.from_json market ))


let from_json_tests = [
make_from_json_test "from_json test 1: fermi" fermi fermi_json
Expand All @@ -233,8 +234,8 @@ let make_get_question_test
(data : Parse.t )
(expected_output : string ): test =
name >:: (fun _ -> assert_equal expected_output (Parse.get_question data )
~printer: pp_string)
~printer: pp_string)


let get_question_tests = [
make_get_question_test "get_question test 1: fermi" fermi_json
Expand All @@ -246,8 +247,8 @@ let make_get_answer_test
(data : Parse.t )
(expected_output : string ): test =
name >:: (fun _ -> assert_equal expected_output (Parse.get_answer data )
~printer: pp_string)
~printer: pp_string)


let get_answer_tests = [
make_get_answer_test "get_answer test 1: fermi" fermi_json "125"
Expand All @@ -262,8 +263,8 @@ let make_get_nth_situation_test
(data : Parse.t )
(expected_output : Parse.situation ): test =
name >:: (fun _ -> assert_equal expected_output
(Parse.get_nth_situation index data))
(Parse.get_nth_situation index data))


let get_nth_situation_tests = [
make_get_nth_situation_test "get_nth_situation test 1: 0th" 0 fermi_json oth_situation;
Expand All @@ -275,9 +276,9 @@ let make_get_event_from_situation_test
(sit : Parse.situation )
(expected_output : string ): test =
name >:: (fun _ -> assert_equal expected_output
(Parse.get_event_from_situation sit)
~printer: pp_string)
(Parse.get_event_from_situation sit)
~printer: pp_string)


let get_event_from_situation_tests = [
make_get_event_from_situation_test "get_event_from_situation test 1: 0th" oth_situation "Flash Crash, all stocks are down";
Expand All @@ -289,8 +290,8 @@ let make_get_effect_from_situation_test
(sit : Parse.situation )
(expected_output : (string * string) option ): test =
name >:: (fun _ -> assert_equal expected_output
(Parse.get_effect_from_situation sit))
(Parse.get_effect_from_situation sit))


let get_effect_from_situation_tests = [
make_get_effect_from_situation_test "get_effect_from_situation test 1: 0th" oth_situation (Some ("decrease", "10%"));
Expand All @@ -302,8 +303,8 @@ let make_get_intro_test
(data : Parse.t )
(expected_output : unit ): test =
name >:: (fun _ -> assert_equal expected_output
(Parse.get_intro data))
(Parse.get_intro data))


let get_intro_tests = [
make_get_intro_test "get_intro test 1: fermi" fermi_json ();
Expand Down

0 comments on commit f93ef1d

Please sign in to comment.