         expectEqual(6, m3.value)
         expectEqual(m1, m2)
         
-        let m10 = Measurement(value: 2, unit: BugUnit())
-        let m11 = Measurement(value: 2, unit: BugUnit())
-        let m12 = Measurement(value: 3, unit: BugUnit())
+        let m10 = Measurement(value: 2, unit: BugUnit.bugs)
+        let m11 = Measurement(value: 2, unit: BugUnit.bugs)
+        let m12 = Measurement(value: 3, unit: BugUnit.bugs)
         
         expectEqual(m10, m11)
         expectNotEqual(m10, m12)

        
        // This correctly fails to build
        
        // let m2 = Measurement(value: 1, unit: BugUnit())
        // m2.converted(to: MyDimensionalUnit.unitKiloA)
    }
    


#if !FOUNDATION_XCTEST
if #available(OSX 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
    let MeasurementTests = TestSuite("TestMeasurement")
    MeasurementTests.test("testBasicConstruction") { TestMeasurement().testBasicConstruction() }
    MeasurementTests.test("testConversion") { TestMeasurement().testConversion() }
    MeasurementTests.test("testOperators") { TestMeasurement().testOperators() }
