From 0c449f80fbe5c10e96f970a9138daea0a874356a Mon Sep 17 00:00:00 2001 From: emera Date: Mon, 2 Dec 2024 17:55:36 +0200 Subject: [PATCH] fix format --- .../mozilla/javascript/tests/ParserTest.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/src/test/java/org/mozilla/javascript/tests/ParserTest.java b/tests/src/test/java/org/mozilla/javascript/tests/ParserTest.java index 1057d81ddc..336dcf2c9a 100644 --- a/tests/src/test/java/org/mozilla/javascript/tests/ParserTest.java +++ b/tests/src/test/java/org/mozilla/javascript/tests/ParserTest.java @@ -1212,34 +1212,37 @@ public void parseUnicodeMultibyteCharacter() { AstNode first = ((ExpressionStatement) root.getFirstChild()).getExpression(); assertEquals("𠮷", first.getString()); } - + @Test public void parseMultibyteCharacter_StringLiteral() { AstRoot root = parse("'\uD83C\uDF1F'"); - StringLiteral first = (StringLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); + StringLiteral first = + (StringLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); assertEquals(4, first.getLength()); assertEquals("'🌟'", first.getValue(true)); } - + @Test public void parseMultibyteCharacter_TemplateLiteral() { AstRoot root = parse("`\uD83C\uDF1F`"); - TemplateLiteral first = (TemplateLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); + TemplateLiteral first = + (TemplateLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); TemplateCharacters templateCharacter = (TemplateCharacters) first.getElement(0); assertEquals(2, templateCharacter.getLength()); assertEquals("🌟", templateCharacter.getValue()); assertEquals(4, first.getLength()); } - + @Test public void parseMultibyteCharacter_XMLLiteral() { AstRoot root = parse("\uD83C\uDF1F"); - XmlLiteral first = (XmlLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); + XmlLiteral first = + (XmlLiteral) ((ExpressionStatement) root.getFirstChild()).getExpression(); XmlFragment fragment = first.getFragments().get(0); assertEquals(13, fragment.getLength()); assertEquals("🌟", fragment.toSource()); } - + @Test public void parseMultibyteCharacter_Comment() { AstRoot root = parse("/*\uD83C\uDF1F*/");