Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.84 KB

Test-Coverage-Overview.md

File metadata and controls

40 lines (32 loc) · 1.84 KB

Test Coverage Overview

Your test suite comprises 53 tests, categorized as follows:

Basic Types Tests (Procedures 1-6):

  • String, Integer, Float, Boolean, DateTime values.
  • Covers basic data types essential for TOML parsing and serialization.

Array Tests (Procedures 10-15):

  • Homogeneous Arrays: Integer, String, Boolean arrays.
  • Mixed-Type Arrays: Arrays containing multiple data types.
  • Empty Arrays: Ensuring empty arrays are handled correctly.

Table Tests (Procedures 20-25):

  • Basic Tables: Single-level tables with different data types.
  • Inline Tables: Compact table definitions.
  • Empty Tables: Handling tables without any key-value pairs.
  • Nested Tables: Tables within tables for hierarchical data.

Serialization Tests (Procedures 30-36):

  • Type-Specific Serialization: Ensures each data type serializes correctly.
  • Table Serialization: Handling nested and complex table structures.
  • Serialization Accuracy: Verifying the output matches expected TOML strings.

Error Cases (Procedures 40-44):

  • Invalid Data Types: Testing parser's response to incorrect data types.
  • Duplicate Keys: Ensuring duplicate keys are handled as per spec.
  • Invalid Table Keys: Validating table key formats.

TOML v1.0.0 Specification Tests (Procedures 50-60):

  • Multiline Strings, Literal Strings: Handling different string formats.
  • Numerical Formats: Integers with underscores, hexadecimal, octal, binary.
  • Floating Points with Underscores: Ensuring proper parsing.
  • DateTime Variants: Local dates, times, and datetime with offsets.
  • Array of Tables, Dotted Table Keys: Advanced table structures.

Additional Specification Tests (Procedures 61-66):

  • Infinity and NaN Handling: Parsing special floating-point values.
  • Offset DateTimes: Timezone-aware datetime parsing.
  • Quoted Keys, Whitespace Handling: Ensuring flexibility in key definitions and parsing.