+ Added formattable benchmark for returns and adjusted to vaguely fuzzy-search

This commit is contained in:
Matthew Cech
2019-05-05 18:55:05 -07:00
parent 3a8306f1e6
commit 99667330df
10 changed files with 248 additions and 30 deletions
@@ -6,10 +6,10 @@ import core.benchmark.*;
public class BenchmarkCommandFind extends BenchmarkCommand
{
private final char lineDelimiter = '\n';
private final String lineDelimiter = "\n";
private final int listMax = 30;
public String OnRun(BenchmarkManager manager, BenchmarkInput input)
public BenchmarkFormattable OnRun(BenchmarkManager manager, BenchmarkInput input)
{
String output = "";
String searchString = input.value.trim();
@@ -42,6 +42,6 @@ public class BenchmarkCommandFind extends BenchmarkCommand
output = "Couldn't find any models matching the search `" + searchString + "`!";
}
return output;
return new BenchmarkFormattable(output);
}
}