test: minor clean-up
authorAshley Yakeley <ashley@yakeley.org>
Fri, 3 Feb 2017 22:02:22 +0000 (14:02 -0800)
committerAshley Yakeley <ashley@yakeley.org>
Fri, 3 Feb 2017 22:02:22 +0000 (14:02 -0800)
test/main/Main.hs
test/main/Test/Tests.hs [deleted file]
time.cabal

index 7602d2a..e0c3eaf 100644 (file)
@@ -1,7 +1,50 @@
 module Main where
-import Test.Tasty
-import Test.Tests
+
 import Foreign.C.Types
+import Test.Tasty
+import Test.Calendar.AddDays
+import Test.Calendar.Calendars
+import Test.Calendar.ClipDates
+import Test.Calendar.ConvertBack
+import Test.Calendar.Easter
+import Test.Calendar.LongWeekYears
+import Test.Calendar.MonthDay
+import Test.Calendar.Valid
+import Test.Clock.Conversion
+import Test.Clock.Resolution
+import Test.Clock.TAI
+import Test.Format.Format
+import Test.Format.ParseTime
+import Test.LocalTime.Time
+import Test.LocalTime.TimeZone
+
+
+tests :: TestTree
+tests = testGroup "Time" [
+    testGroup "Calendar" [
+        addDaysTest,
+        testCalendars,
+        clipDates,
+        convertBack,
+        longWeekYears,
+        testMonthDay,
+        testEaster,
+        testValid
+        ],
+    testGroup "Clock" [
+        testClockConversion,
+        testResolution,
+        testTAI
+        ],
+    testGroup "Format" [
+        testFormat,
+        testParseTime
+        ],
+    testGroup "LocalTime" [
+        testTime,
+        testTimeZone
+        ]
+    ]
 
 main :: IO ()
 main = do
diff --git a/test/main/Test/Tests.hs b/test/main/Test/Tests.hs
deleted file mode 100644 (file)
index e95cb68..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-module Test.Tests where
-
-import Test.Tasty
-
-import Test.Calendar.AddDays
-import Test.Calendar.ClipDates
-import Test.Clock.Conversion
-import Test.Calendar.ConvertBack
-import Test.Calendar.LongWeekYears
-import Test.Clock.Resolution
-import Test.Calendar.Calendars
-import Test.Calendar.Easter
-import Test.Format.Format
-import Test.Calendar.MonthDay
-import Test.Format.ParseTime
-import Test.Clock.TAI
-import Test.LocalTime.Time
-import Test.LocalTime.TimeZone
-import Test.Calendar.Valid
-
-tests :: TestTree
-tests = testGroup "time" [ addDaysTest
-        , clipDates
-        , testClockConversion
-        , convertBack
-        , longWeekYears
-        , testResolution
-        , testCalendars
-        , testEaster
-        , testFormat
-        , testMonthDay
-        , testParseTime
-        , testTAI
-        , testTime
-        , testTimeZone
-        , testValid ]
index e8f9934..cc43eff 100644 (file)
@@ -137,27 +137,26 @@ test-suite test-main
         unix
     main-is: Main.hs
     other-modules:
-        Test.Tests
-        Test.Clock.Conversion
-        Test.LocalTime.Time
-        Test.LocalTime.TimeRef
-        Test.Format.ParseTime
-        Test.Calendar.MonthDay
-        Test.Calendar.MonthDayRef
-        Test.Format.Format
-        Test.Calendar.Easter
-        Test.Calendar.EasterRef
+        Test.TestUtil
+        Test.Calendar.AddDays
+        Test.Calendar.AddDaysRef
         Test.Calendar.Calendars
         Test.Calendar.CalendarsRef
-        Test.Clock.TAI
-        Test.LocalTime.TimeZone
-        Test.Calendar.Valid
-        Test.Clock.Resolution
-        Test.Calendar.LongWeekYears
-        Test.Calendar.LongWeekYearsRef
-        Test.Calendar.ConvertBack
         Test.Calendar.ClipDates
         Test.Calendar.ClipDatesRef
-        Test.Calendar.AddDays
-        Test.Calendar.AddDaysRef
-        Test.TestUtil
+        Test.Calendar.ConvertBack
+        Test.Calendar.Easter
+        Test.Calendar.EasterRef
+        Test.Calendar.LongWeekYears
+        Test.Calendar.LongWeekYearsRef
+        Test.Calendar.MonthDay
+        Test.Calendar.MonthDayRef
+        Test.Calendar.Valid
+        Test.Clock.Conversion
+        Test.Clock.Resolution
+        Test.Clock.TAI
+        Test.Format.Format
+        Test.Format.ParseTime
+        Test.LocalTime.Time
+        Test.LocalTime.TimeRef
+        Test.LocalTime.TimeZone