Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Mar 24, 2024
1 parent 66a8377 commit dec4d55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/flatgraph/misc/TestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object TestUtils {
}

def copy(storagePathMaybe: Option[Path] = None): Graph = {
val schema = graph.schema
val schema = graph.schema
val newGraph = new Graph(schema, storagePathMaybe)

for (kind <- Range(0, schema.getNumberOfNodeKinds)) {
Expand Down
12 changes: 7 additions & 5 deletions core/src/test/scala/flatgraph/GraphTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ class GraphTests extends AnyWordSpec with Matchers {
"copying a graph" in {
import flatgraph.misc.TestUtils.copy

val graph = DiffToolTests.makeSampleGraph()
val graph = DiffToolTests.makeSampleGraph()
val debugDumpOriginalGraph = debugDump(graph)
debugDumpOriginalGraph shouldBe
"""#Node numbers (kindId, nnodes) (0: 2), total 2
Expand All @@ -916,11 +916,13 @@ class GraphTests extends AnyWordSpec with Matchers {
debugDump(graph) shouldBe debugDump(graphCopy)

// make some changes only to the graph copy
val v0 = graphCopy.node(kind = 0, seq = 0)
val v0 = graphCopy.node(kind = 0, seq = 0)
val edge = Accessors.getEdgesOut(v0).head
DiffGraphApplier.applyDiff(graphCopy, new DiffGraphBuilder(DiffToolTests.sampleSchema)
.setNodeProperty(v0, "0", "updatedNodeProperty")
.setEdgeProperty(edge, "updatedEdgeProperty")
DiffGraphApplier.applyDiff(
graphCopy,
new DiffGraphBuilder(DiffToolTests.sampleSchema)
.setNodeProperty(v0, "0", "updatedNodeProperty")
.setEdgeProperty(edge, "updatedEdgeProperty")
)
debugDump(graphCopy) shouldBe
"""#Node numbers (kindId, nnodes) (0: 2), total 2
Expand Down

0 comments on commit dec4d55

Please sign in to comment.