Fix calculation bug and add Convert to Signed

A signed output is often needed for Shodan and other favicon searches.
This commit is contained in:
Alice 2024-02-06 15:21:39 -05:00
parent afcf46561a
commit cfc8a506f7
2 changed files with 71 additions and 23 deletions

View file

@ -51,5 +51,27 @@ TestRegister.addTests([
args: [1337],
},
],
},
{
name: "To MurmurHash3: foo",
input: "foo",
expectedOutput: "4138058784",
recipeConfig: [
{
op: "MurmurHash3",
args: [0],
},
],
},
{
name: "To MurmurHash3: foo signed",
input: "foo",
expectedOutput: "-156908512",
recipeConfig: [
{
op: "MurmurHash3",
args: [0, true],
},
],
}
]);