@@ -159,6 +159,17 @@ TEST_CASE("table", "config") {
159159 config.set (" break_after_table_lb" , false );
160160 config.set (" break_before_table_rb" , false );
161161 REQUIRE (" x = {1, 2, 3,\n 4, 5, 6, 7}\n " == lua_format (" x = {1,2,3,4,5,6,7}" , config));
162+
163+ config.set (" column_limit" , 250 );
164+ config.set (" indent_width" , 2 );
165+ config.set (" tab_width" , 2 );
166+ config.set (" continuation_indent_width" , 2 );
167+ config.set (" chop_down_table" , true );
168+ config.set (" chop_down_kv_table" , true );
169+ config.set (" column_table_limit" , 80 );
170+
171+ REQUIRE (" test = {\n image = {1, 2, 3},\n list = {\n {\n ref = {4, 5, 9, 8, 2},\n tags = {1, 2, 8, 6},\n time = 10,\n\n materials = {{materialId = 123, count = 10}}\n }\n }\n }\n " ==
172+ lua_format (" test = {\n image = {1,2,3},\n list = {\n {\n ref = {4,5,9,8,2},\n tags = { 1, 2, 8, 6 },\n time = 10,\n\n materials = {\n {\n materialId = 123,\n count = 10\n }\n },\n },\n },\n }" , config));
162173}
163174
164175TEST_CASE (" break_after_operator" , " config" ) {
0 commit comments