Skip to content

Latest commit

 

History

History
285 lines (225 loc) · 36.8 KB

File metadata and controls

285 lines (225 loc) · 36.8 KB

Comprehensive Test Case Comparison Across All Languages

This document provides a detailed comparison of test cases across Python, JavaScript, Rust, and C#.

Legend

  • ✅ Test exists in the language
  • ❌ Test is missing in the language
  • ⚠️ Test adapted/modified for language-specific behavior

Summary Statistics

Language Total Tests Test Categories
Python 137 12
JavaScript 138 12
Rust 138 12
C# 140 13

Api

Test Name Python JavaScript Rust C#
empty link
indented id syntax parsing
indented id syntax roundtrip
is link
is link equivalent
is ref
is ref equivalent
link with source target
link with source type target
multiple indented id syntax parsing
multiple indented id syntax roundtrip
quoted references
quoted references parsing
simple link
single line format

Category totals: Python: 15, JavaScript: 15, Rust: 15, C#: 15

Edge Case Parser

Test Name Python JavaScript Rust C#
all features
empty document
empty link
empty links
empty link with empty self reference
empty link with parentheses
invalid input
singlet links
whitespace only

Category totals: Python: 9, JavaScript: 9, Rust: 9, C#: 9

Format Config

Test Name Python JavaScript Rust C#
format config basic
format config custom indent
format config less parentheses
format with consecutive grouping
format with line length limit
format with max inline refs
roundtrip with line length formatting
should indent by length
should indent by ref count

Category totals: Python: 9, JavaScript: 9, Rust: 9, C#: 9

Indentation Consistency

Test Name Python JavaScript Rust C#
leading spaces vs no leading spaces
simple two vs four spaces indentation
three level nesting with different indentation
two spaces vs four spaces indentation

Category totals: Python: 4, JavaScript: 4, Rust: 4, C#: 4

Indented Id Syntax

Test Name Python JavaScript Rust C#
basic indented id syntax
empty indented id should work
equivalence test comprehensive
indented id syntax with multiple values
indented id syntax with numeric id
indented id syntax with quoted id
indented id syntax with single value
indented id with deeper nesting
mixed indented and regular syntax
multiple indented id links
unsupported colon only syntax should fail

Category totals: Python: 11, JavaScript: 11, Rust: 11, C#: 11

Link

Test Name Python JavaScript Rust C#
link combine
link constructor with id and values
link constructor with id only
link equals
link escape reference simple
link escape reference with special characters
link simplify
link tostring with id and values
link tostring with id only
link tostring with values only

Category totals: Python: 10, JavaScript: 10, Rust: 10, C#: 10

Links Group

Test Name Python JavaScript Rust C#
links group append to links list test
links group constructor
links group constructor equivalent test
links group to list flattens structure
links group to string

Category totals: Python: 5, JavaScript: 5, Rust: 5, C#: 5

Mixed Indentation Modes

Test Name Python JavaScript Rust C#
deeply nested mixed modes
hero example alternative format
hero example equivalence
hero example mixed modes
nested set and sequence contexts
sequence context with colon
sequence context with complex values
set context without colon

Category totals: Python: 8, JavaScript: 8, Rust: 8, C#: 8

Multiline Parser

Test Name Python JavaScript Rust C#
complex structure
duplicate identifiers
indented children
mixed formats
multiline simple links
multiline with id
multiple top level elements
parse and stringify
parse and stringify test 2
parse and stringify with less parentheses
two links

Category totals: Python: 11, JavaScript: 11, Rust: 11, C#: 11

Multiline Quoted String

Test Name Python JavaScript Rust C#
multiline double quoted reference
multiline quoted as id
simple multiline double quoted
simple multiline single quoted

Category totals: Python: 4, JavaScript: 4, Rust: 4, C#: 4

Nested Parser

Test Name Python JavaScript Rust C#
complex indentation
deep nested structure roundtrip
indentation based children
indentation consistency
indentation parser
multiple nested links roundtrip
nested indentation parser
nested links
parse nested structure with indentation
significant whitespace
simple significant whitespace
three level nesting roundtrip
two spaces sized whitespace

Category totals: Python: 13, JavaScript: 13, Rust: 13, C#: 13

Single Line Parser

Test Name Python JavaScript Rust C#
bug test 1
deeply nested
hyphenated identifiers
link with id
link without id multiline
link without id singleline
multi line link with id
multiline without id
multiple words in quotes
nested links
parse multiline link
parse quoted references
parse quoted references values only
parse reference with colon and values
parse simple reference
parse values only
parse values only standalone colon
quoted reference
quoted reference parser
quoted references
quoted references with spaces
quoted references with spaces in link
quoted references with special chars
simple ref
simple reference
simple reference parser
single line link
single line link with id
single line with id
single line without id
single link
single quoted references
singlet link
singlet link parser
special characters in quotes
triplet single link
value link
value link parser

Category totals: Python: 38, JavaScript: 38, Rust: 38, C#: 38

Tuple

Test Name Python JavaScript Rust C#
named tuple to link test
tuple to link test

Category totals: Python: 0, JavaScript: 0, Rust: 0, C#: 2


Missing Tests Summary

Python Missing Tests

Tuple (2 missing):

  • namedtupletolink
  • tupletolink

Total missing: 2 tests

JavaScript Missing Tests

Tuple (2 missing):

  • namedtupletolink
  • tupletolink

Total missing: 2 tests

Rust Missing Tests

Tuple (2 missing):

  • namedtupletolink
  • tupletolink

Total missing: 2 tests

C# Missing Tests

✅ No missing tests!