11import assert from "node:assert"
22import { test } from "node:test"
3- import { Cell , addContent } from "../cell/index.js"
3+ import { Cell , put } from "../cell/index.js"
44import { Interval , intervalAlmostEqual } from "../interval/index.js"
55import { run } from "../scheduler/index.js"
66import { fallDuration , similarTriangles } from "./barometer.js"
77
88test ( "examples / barometer / fallDuration" , async ( ) => {
99 const [ fallTime , buildingHeight ] = fallDuration ( )
10- addContent ( fallTime , Interval ( 2.9 , 3.1 ) )
10+ put ( fallTime , Interval ( 2.9 , 3.1 ) )
1111
1212 await run ( )
1313
@@ -22,11 +22,11 @@ test("examples / barometer / fallDuration", async () => {
2222
2323test ( "examples / barometer / fallDuration / Interval + Number" , async ( ) => {
2424 const [ fallTime , buildingHeight ] = fallDuration ( )
25- addContent ( fallTime , Interval ( 2.9 , 3.1 ) )
25+ put ( fallTime , Interval ( 2.9 , 3.1 ) )
2626
2727 await run ( )
2828
29- addContent ( buildingHeight , Interval ( 45 , 45 ) )
29+ put ( buildingHeight , Interval ( 45 , 45 ) )
3030
3131 await run ( )
3232
@@ -36,9 +36,9 @@ test("examples / barometer / fallDuration / Interval + Number", async () => {
3636test ( "examples / barometer / similarTriangles & fallDuration" , async ( ) => {
3737 const [ barometerShadow , barometerHeight , buildingShadow , buildingHeight ] =
3838 similarTriangles ( )
39- addContent ( buildingShadow , Interval ( 54.9 , 55.1 ) )
40- addContent ( barometerHeight , Interval ( 0.3 , 0.32 ) )
41- addContent ( barometerShadow , Interval ( 0.36 , 0.37 ) )
39+ put ( buildingShadow , Interval ( 54.9 , 55.1 ) )
40+ put ( barometerHeight , Interval ( 0.3 , 0.32 ) )
41+ put ( barometerShadow , Interval ( 0.36 , 0.37 ) )
4242
4343 await run ( )
4444
@@ -52,7 +52,7 @@ test("examples / barometer / similarTriangles & fallDuration", async () => {
5252
5353 const fallTime = Cell ( )
5454 fallDuration ( fallTime , buildingHeight )
55- addContent ( fallTime , Interval ( 2.9 , 3.1 ) )
55+ put ( fallTime , Interval ( 2.9 , 3.1 ) )
5656
5757 await run ( )
5858
0 commit comments