Skip to content

Commit

Permalink
Make test for #19484 better
Browse files Browse the repository at this point in the history
  • Loading branch information
iacore committed Feb 3, 2022
1 parent c28d135 commit 5f1ce3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/objects/t19484.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ type
outputs: seq[ValueType]
rails: seq[Effect]

const SHAPEPOS = Rectangle(x: 12.0, y: 34.0, width: 56.0, height: 78.0)

var nodes: seq[Node]
var node: Node = default(Node)
let shapepos = Rectangle(x: 12.0, y: 34.0, width: 56.0, height: 78.0)
let shapepos = SHAPEPOS
node.shapepos = shapepos
node.inputs.add ValueType(payload:42)
echo node
nodes.add node
echo nodes
doAssert nodes[0].shapepos.x == shapepos.x
doAssert nodes[0].shapepos.x == SHAPEPOS.x
doAssert nodes[0].shapepos == SHAPEPOS

0 comments on commit 5f1ce3f

Please sign in to comment.