Skip to content

Commit

Permalink
Bugfix integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ray1729 committed Jun 19, 2014
1 parent e282030 commit a49e9d5
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions test/clojurewerkz/titanium/integration_test.clj
Expand Up @@ -12,35 +12,35 @@
;; The Graph of the Gods example from the Titan wiki
(deftest test-integration-example1
(tg/with-transaction [tx *graph*]
(let [saturn (tv/create! {:name "Saturn" :type "titan"})
jupiter (tv/create! {:name "Jupiter" :type "god"})
hercules (tv/create! {:name "Hercules" :type "demigod"})
alcmene (tv/create! {:name "Alcmene" :type "human"})
neptune (tv/create! {:name "Neptune" :type "god"})
pluto (tv/create! {:name "Pluto" :type "god"})
sea (tv/create! {:name "Sea" :type "location"})
sky (tv/create! {:name "Sky" :type "location"})
tartarus (tv/create! {:name "Tartarus" :type "location"})
nemean (tv/create! {:name "Nemean" :type "monster"})
hydra (tv/create! {:name "Hydra" :type "monster"})
cerberus (tv/create! {:name "Cerberus" :type "monster"})]
(ted/connect! neptune :lives sea)
(ted/connect! jupiter :lives sky)
(ted/connect! pluto :lives tartarus)
(ted/connect! jupiter :father saturn)
(ted/connect! hercules :father jupiter)
(ted/connect! hercules :mother alcmene)
(ted/connect! jupiter :brother pluto)
(ted/connect! pluto :brother jupiter)
(ted/connect! neptune :brother pluto)
(ted/connect! pluto :brother neptune)
(ted/connect! jupiter :brother neptune)
(ted/connect! neptune :brother jupiter)
(ted/connect! cerberus :lives tartarus)
(ted/connect! pluto :pet cerberus)
(ted/connect! hercules :battled nemean {:times 1})
(ted/connect! hercules :battled hydra {:times 2})
(ted/connect! hercules :battled cerberus {:times 12})
(let [saturn (tv/create! tx {:name "Saturn" :type "titan"})
jupiter (tv/create! tx {:name "Jupiter" :type "god"})
hercules (tv/create! tx {:name "Hercules" :type "demigod"})
alcmene (tv/create! tx {:name "Alcmene" :type "human"})
neptune (tv/create! tx {:name "Neptune" :type "god"})
pluto (tv/create! tx {:name "Pluto" :type "god"})
sea (tv/create! tx {:name "Sea" :type "location"})
sky (tv/create! tx {:name "Sky" :type "location"})
tartarus (tv/create! tx {:name "Tartarus" :type "location"})
nemean (tv/create! tx {:name "Nemean" :type "monster"})
hydra (tv/create! tx {:name "Hydra" :type "monster"})
cerberus (tv/create! tx {:name "Cerberus" :type "monster"})]
(ted/connect! tx neptune :lives sea)
(ted/connect! tx jupiter :lives sky)
(ted/connect! tx pluto :lives tartarus)
(ted/connect! tx jupiter :father saturn)
(ted/connect! tx hercules :father jupiter)
(ted/connect! tx hercules :mother alcmene)
(ted/connect! tx jupiter :brother pluto)
(ted/connect! tx pluto :brother jupiter)
(ted/connect! tx neptune :brother pluto)
(ted/connect! tx pluto :brother neptune)
(ted/connect! tx jupiter :brother neptune)
(ted/connect! tx neptune :brother jupiter)
(ted/connect! tx cerberus :lives tartarus)
(ted/connect! tx pluto :pet cerberus)
(ted/connect! tx hercules :battled nemean {:times 1})
(ted/connect! tx hercules :battled hydra {:times 2})
(ted/connect! tx hercules :battled cerberus {:times 12})
(let [r1 (g/query saturn
(g/<-- [:father])
(g/<-- [:father])
Expand Down

0 comments on commit a49e9d5

Please sign in to comment.