Skip to content

Commit

Permalink
Update test resource following bug fix to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
mbryzek committed Apr 23, 2024
1 parent 6880d5a commit c0b8dc5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/test/resources/generator/anorm/cap-name.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ package test.apidoc.apidoctest.v0.anorm.parsers {
def parserWithPrefix(prefix: String, sep: String = "_"): RowParser[test.apidoc.apidoctest.v0.models.Name] = parser(prefixOpt = Some(s"$prefix$sep"))

def parser(
First: String = "First",
Last: String = "Last",
first: String = "First",
last: String = "Last",
prefixOpt: Option[String] = None
): RowParser[test.apidoc.apidoctest.v0.models.Name] = {
SqlParser.str(prefixOpt.getOrElse("") + First).? ~
SqlParser.str(prefixOpt.getOrElse("") + Last).? map {
SqlParser.str(prefixOpt.getOrElse("") + first).? ~
SqlParser.str(prefixOpt.getOrElse("") + last).? map {
case first ~ last => {
test.apidoc.apidoctest.v0.models.Name(
First = first,
Last = last
first = first,
last = last
)
}
}
}

}

}
}

0 comments on commit c0b8dc5

Please sign in to comment.