Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
7ea83d34
Commit
7ea83d34
authored
May 09, 2005
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for get-internal-real/run-time
parent
7d3b08bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
ansi-tests/get-internal-time.lsp
ansi-tests/get-internal-time.lsp
+66
-0
ansi-tests/load-environment.lsp
ansi-tests/load-environment.lsp
+1
-0
No files found.
ansi-tests/get-internal-time.lsp
0 → 100644
View file @
7ea83d34
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sun May 8 20:28:21 2005
;;;; Contains: Tests of GET-INTERNAL-REAL-TIME, GET-INTERNAL-RUN-TIME
(in-package :cl-test)
(deftest get-internal-real-time.1
(notnot-mv (typep (multiple-value-list (get-internal-real-time)) '(cons unsigned-byte null)))
t)
(deftest get-internal-real-time.2
(funcall
(compile
nil
'(lambda ()
(let ((prev (get-internal-real-time)))
(loop for next = (get-internal-real-time)
repeat 100000
do (assert (>= next prev))
do (setf prev next))))))
nil)
(deftest get-internal-real-time.error.1
(signals-error (get-internal-real-time nil) program-error)
t)
(deftest get-internal-real-time.error.2
(signals-error (get-internal-real-time :allow-other-keys t) program-error)
t)
;;;;;
(deftest get-internal-run-time.1
(notnot-mv (typep (multiple-value-list (get-internal-run-time)) '(cons unsigned-byte null)))
t)
(deftest get-internal-run-time.2
(funcall
(compile
nil
'(lambda ()
(let ((prev (get-internal-run-time)))
(loop for next = (get-internal-run-time)
repeat 100000
do (assert (>= next prev))
do (setf prev next))))))
nil)
(deftest get-internal-run-time.error.1
(signals-error (get-internal-run-time nil) program-error)
t)
(deftest get-internal-run-time.error.2
(signals-error (get-internal-run-time :allow-other-keys t) program-error)
t)
;;;
(deftest internal-time-units-per-second.1
(notnot-mv (constantp 'internal-time-units-per-second))
t)
(deftest internal-time-units-per-second.2
(notnot-mv (typep internal-time-units-per-second '(integer 1)))
t)
ansi-tests/load-environment.lsp
View file @
7ea83d34
...
...
@@ -17,3 +17,4 @@
(load "encode-universal-time.lsp")
(load "get-universal-time.lsp")
(load "sleep.lsp")
(load "get-internal-time.lsp")
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment