public void testStripComments()

in javatests/com/google/cloud/deploymentmanager/autogen/soy/PreprocessorTest.java [137:178]


  public void testStripComments() {
    assertThat(
        Preprocessor.stripComments(lines(
            "http://abc",
            "def //comment here  ", 
            "//comment here  ",
            "   // more comment here  ",
            "ghi")))
        .isEqualTo(lines(
            "http://abc",
            "def",
            "",
            "",
            "ghi"));

    assertThat(
        Preprocessor.stripComments(lines(
            "abc /** comment here */ def /**comment here*/",
            "/**comment here*/  ",
            "  /**comment here*/ ",
            "/**",
            " * long",
            " * comment",
            " */",
            "ghi")))
        .isEqualTo(lines(
            "abc def",
            "  ",
            " ",
            "",
            "ghi"));
    
    assertThat(
        Preprocessor.stripComments(lines(
            "// comment /** now",
            "this shouldn't be a comment",
            "neither is this tag */")))
        .isEqualTo(lines(
            "",
            "this shouldn't be a comment",
            "neither is this tag */"));
  }