mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
style: improve commented graph illustrations
This commit is contained in:
parent
5eb8b3db0d
commit
2991e32682
1 changed files with 8 additions and 7 deletions
|
|
@ -106,7 +106,7 @@ TEST("graph", function()
|
||||||
|
|
||||||
do CASE "diamond graph"
|
do CASE "diamond graph"
|
||||||
-- a -> b -> d
|
-- a -> b -> d
|
||||||
-- -> c
|
-- 🡖 c 🡕
|
||||||
local root = node()
|
local root = node()
|
||||||
local a, b, c, d = node(), node(root), node(root), node(root)
|
local a, b, c, d = node(), node(root), node(root), node(root)
|
||||||
|
|
||||||
|
|
@ -2520,7 +2520,7 @@ TEST("graph edge cases", wrap_root(function()
|
||||||
do CASE "brother requires older brother"
|
do CASE "brother requires older brother"
|
||||||
--[[
|
--[[
|
||||||
A
|
A
|
||||||
^ ^
|
🡕 🡔
|
||||||
B <-- C
|
B <-- C
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
@ -2543,8 +2543,9 @@ TEST("graph edge cases", wrap_root(function()
|
||||||
do CASE "diamond A,B,C,D"
|
do CASE "diamond A,B,C,D"
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
a > b > d
|
a -> b -> d
|
||||||
> c >
|
🡖 🡕
|
||||||
|
c
|
||||||
|
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
@ -2575,9 +2576,9 @@ TEST("graph edge cases", wrap_root(function()
|
||||||
do CASE "diamond A,B,C,D,E"
|
do CASE "diamond A,B,C,D,E"
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
a > b > e
|
a -> b -> e
|
||||||
> c > d >
|
🡖 🡕
|
||||||
|
c --> d
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local a = source(0)
|
local a = source(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue