This commit is contained in:
Vladimir Dubovik
2025-06-13 11:59:16 +03:00
parent 2204bb9fe0
commit 5abafda21b
152 changed files with 9783 additions and 69 deletions

View File

@ -0,0 +1,23 @@
//
// NTPExtensionsSpec.swift
// TrueTime
//
// Created by Michael Sanders on 7/18/16.
// Copyright © 2016 Instacart. All rights reserved.
//
@testable import TrueTime
import Nimble
import Quick
import SwiftCheck
final class NTPExtensionsSpec: QuickSpec {
override func spec() {
it("ntp_time64_t") {
property("Matches timeval precision") <- forAll(timeval.arbitraryPositive) { time in
let ntp = ntp_time64_t(timeSince1970: time)
return ntp.milliseconds == time.milliseconds
}
}
}
}