\unset ECHO \set QUIET 1 \pset format unaligned \pset tuples_only true \pset pager off \set ON_ERROR_ROLLBACK 1 \set ON_ERROR_STOP true BEGIN; CREATE EXTENSION pg_mustach; SELECT 1, 'string equal exact match', mustach('{"s":"abc"}', '{{#s=abc}}yes{{/s=abc}}'); SELECT 2, 'string equal, matching prefix but different length', mustach('{"s":"abc"}', '{{#s=abcd}}yes{{/s=abcd}}'); SELECT 3, 'string less-than by real content divergence', mustach('{"s":"abc"}', '{{#sabc}}yes{{/s>abc}}'); SELECT 7, 'empty stored string still fails the truthiness gate even when the compare matches', mustach('{"s":""}', '{{#sabc}}yes{{/o>abc}}'); SELECT 13, 'container compared with less-than never reports lesser', mustach('{"o":{"x":1}}', '{{#o