[BACK]Return to token_string_prefix.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

File: [cvs.NetBSD.org] / src / tests / usr.bin / indent / Attic / token_string_prefix.c (download)

Revision 1.1, Mon Oct 18 22:30:34 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN

tests/indent: condense the token tests

This reduces the number of files in the test directory. It also allows
the tests to be read from top to bottom, looking at only a single file.

Since t_options.awk complains about files that don't have any test case
at all, add some test for each token kind. Most of the tests had
previously been effectively empty.

/* $NetBSD: token_string_prefix.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
/* $FreeBSD$ */

/*
 * Tests for strings of wide characters, which are prefixed with 'L'.
 */

#indent input
wchar_t wide_string[] = L"wide string";
#indent end

/*
 * Regardless of the line length, the 'L' must never be separated from the
 * string literal.
 */
#indent run-equals-input -di0
#indent run-equals-input -di0 -l25
#indent run-equals-input -di0 -l1