Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cells
cells
Commits
fcf21ed5
Commit
fcf21ed5
authored
Oct 12, 2008
by
Kenny Tilton
Browse files
*** empty log message ***
parent
8526e5c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
test-cc.lisp
0 → 100644
View file @
fcf21ed5
(
in-package
:cells
)
(
defmd
tcc
()
(
tccversion
1
)
(
tcc-a
(
c-in
nil
))
(
tcc-2a
(
c-in
nil
)))
(
defobserver
tcc-a
()
(
case
(
^tccversion
)
(
1
(
when
new-value
(
with-cc
:tcc-a-obs
(
setf
(
tcc-2a
self
)
(
*
2
new-value
))
(
with-cc
:aha!2
(
assert
(
eql
(
tcc-2a
self
)
(
*
2
new-value
))
()
"one"
)
(
trc
"one happy"
)))
(
with-cc
:aha!
(
assert
(
eql
(
tcc-2a
self
)
(
*
2
new-value
))
()
"two"
))))
(
2
(
when
new-value
(
with-cc
:tcc-a-obs
(
setf
(
tcc-2a
self
)
(
*
2
new-value
))
(
with-cc
:aha!2
(
assert
(
eql
(
tcc-2a
self
)
(
*
2
new-value
))
()
"one"
)
(
trc
"one happy"
)))))))
(
defun
test-with-cc
()
(
let
((
self
(
make-instance
'tcc
:tccversion
2
;:tcc-2a
)))
(
trcx
cool
42
)
(
setf
(
tcc-a
self
)
42
)
(
assert
(
and
(
numberp
(
tcc-2a
self
))
(
=
(
tcc-2a
self
)
84
)))))
#+
test
(
test-with-cc
)
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