Skip to content

Commit

Permalink
Rewrite tests to simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Aug 26, 2023
1 parent 7740e3e commit c557fca
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions test/fern/internal/node.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -236,21 +236,22 @@ Describe fern#internal#node
\)

Assert Equals(e, v:null)
Assert Equals(len(r), 14)
Assert Equals(r[0]._uri, '/')
Assert Equals(r[1]._uri, '/deep')
Assert Equals(r[2]._uri, '/deep/alpha')
Assert Equals(r[3]._uri, '/deep/alpha/beta')
Assert Equals(r[4]._uri, '/deep/alpha/beta/gamma')
Assert Equals(r[5]._uri, '/heavy')
Assert Equals(r[6]._uri, '/heavy/alpha')
Assert Equals(r[7]._uri, '/heavy/beta')
Assert Equals(r[8]._uri, '/heavy/gamma')
Assert Equals(r[9]._uri, '/shallow')
Assert Equals(r[10]._uri, '/shallow/alpha')
Assert Equals(r[11]._uri, '/shallow/beta')
Assert Equals(r[12]._uri, '/shallow/gamma')
Assert Equals(r[13]._uri, '/leaf')
Assert Equals(DescribeNodes(r), [
\ '/',
\ '/deep',
\ '/deep/alpha',
\ '/deep/alpha/beta',
\ '/deep/alpha/beta/gamma',
\ '/heavy',
\ '/heavy/alpha',
\ '/heavy/beta',
\ '/heavy/gamma',
\ '/shallow',
\ '/shallow/alpha',
\ '/shallow/beta',
\ '/shallow/gamma',
\ '/leaf',
\])
End
End

Expand Down

0 comments on commit c557fca

Please sign in to comment.