@mixin _true-assert-results() [private]

Description

Get an official result, record it in the database and output, provide details as necessary, and end the assertion.

Parameters & Output

$assert: (*)

Value to consider

$expected: (*)

Expected match

$unequal: false (bool)

Set to true if the comparison is expected to fail

{CSS output} (code block)

  • Document the passing or failing result of the test

requires

@mixin _true-pass-details() [private]

@mixin _true-fail-details() [private]

@mixin _true-update-test() [private]

@mixin _true-context-pop() [private]

@function _true-get-result() [private]

@function _true-is-truthy() [private]

Description

Check that a value is truthy (empty lists and strings return false)

Parameters & Return

$assert: (*)

Value to consider

@return (bool)

used by

@mixin _true-pass-details() [private]

Description

Ouptut a success message for passing tests

Map Properties & Output

{CSS output} (code block)

- a passing-test comment with the name of the passing assertion

requires

@mixin _true-message() [private]

@function _true-context() [private]

used by

@mixin _true-assert-results() [private]

@mixin _true-fail-details() [private]

Description

Failure message, with appropriate details to help you debug various common problems.

Parameters

$assert: (*)

The assertion value

$expected: (*)

The expected value

$terminal: $true-terminal-output (bool)

whether to use the terminal as an output stream

requires

@mixin _true-message() [private]

@function _true-context() [private]

@function _true-variable-details() [private]

@function _true-edgefail-notes() [private]

used by

@mixin _true-assert-results() [private]

@function _true-variable-details() [private]

Description

Provide the details (type, list-separator, quotation) for a given variable - used to provide context in failure reporting

Parameters

$var: (*)

Pass in asserted and expected values individually to retrieve comparable details for both

used by

@mixin _true-fail-details() [private]

@function _true-edgefail-notes() [private]

Description

There are some common test failures that can be confusing, where results look identical in the output, but represent different values internally. This function looks for those edge-case failures and adds a clarifying note in the results.

Parameters & Return

$one: (*)

One of the values being compared

$two: (*)

The other calue being compared

@return (null | string)

A helpful note related to your edge-case, when appropriate

used by

@mixin _true-fail-details() [private]