From bd0214b1da66225f410641692e89e492f668472a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Jan 2021 14:46:29 +0100 Subject: Format all code with clang-format --- test/symbol_test.cpp | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'test/symbol_test.cpp') diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp index 16d9476..e52a294 100644 --- a/test/symbol_test.cpp +++ b/test/symbol_test.cpp @@ -25,47 +25,47 @@ int main() { - using Symbol = Raul::Symbol; + using Symbol = Raul::Symbol; - std::list names; - names.emplace_back("Dry/Wet Balance"); - names.emplace_back("foo+1bar(baz)"); - names.emplace_back("ThisCRAR"); - names.emplace_back("NAME"); - names.emplace_back("thing with a bunch of spaces"); - names.emplace_back("thing-with-a-bunch-of-dashes"); - names.emplace_back("CamelCaseABC"); - names.emplace_back("Signal Level [dB]"); - names.emplace_back("Gain dB"); - names.emplace_back("Dry/Wet Balance"); - names.emplace_back("Phaser1 - Similar to CSound's phaser1 by Sean Costello"); - names.emplace_back("1"); - names.emplace_back(""); + std::list names; + names.emplace_back("Dry/Wet Balance"); + names.emplace_back("foo+1bar(baz)"); + names.emplace_back("ThisCRAR"); + names.emplace_back("NAME"); + names.emplace_back("thing with a bunch of spaces"); + names.emplace_back("thing-with-a-bunch-of-dashes"); + names.emplace_back("CamelCaseABC"); + names.emplace_back("Signal Level [dB]"); + names.emplace_back("Gain dB"); + names.emplace_back("Dry/Wet Balance"); + names.emplace_back("Phaser1 - Similar to CSound's phaser1 by Sean Costello"); + names.emplace_back("1"); + names.emplace_back(""); - for (const auto& name : names) { - assert(!Symbol::symbolify(name).empty()); - } + for (const auto& name : names) { + assert(!Symbol::symbolify(name).empty()); + } - const Symbol original("sym"); - assert(original == original); + const Symbol original("sym"); + assert(original == original); - bool valid = true; - try { - Symbol symbol("0startswithdigit"); - } catch (const Symbol::BadSymbol& e) { - std::cerr << "Caught exception: " << e.what() << std::endl; - valid = false; - } - assert(!valid); + bool valid = true; + try { + Symbol symbol("0startswithdigit"); + } catch (const Symbol::BadSymbol& e) { + std::cerr << "Caught exception: " << e.what() << std::endl; + valid = false; + } + assert(!valid); - valid = true; - try { - Symbol symbol(std::string("invalid/symbol")); - } catch (const Symbol::BadSymbol& e) { - std::cerr << "Caught exception: " << e.what() << std::endl; - valid = false; - } - assert(!valid); + valid = true; + try { + Symbol symbol(std::string("invalid/symbol")); + } catch (const Symbol::BadSymbol& e) { + std::cerr << "Caught exception: " << e.what() << std::endl; + valid = false; + } + assert(!valid); - return 0; + return 0; } -- cgit v1.2.1