chore: fix warnings.

This commit is contained in:
redxef 2024-11-11 17:53:47 +01:00
parent 3c0d8a3809
commit 12d98c46cb
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
2 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;

View file

@ -199,11 +199,11 @@ namespace Tests
Expression r;
e.environment.Set("o", new Lisp_Object(new O(5, false)));
r = e.eval("""(haskeys o "i" "b")""");
Assert.Equal(((Lisp_Boolean)r).Value(), true);
Assert.True(((Lisp_Boolean)r).Value());
r = e.eval("""(getitems o "i" "b")""");
Assert.Equal(string.Format("{0}", r), "(5 nil)");
Assert.Equal("(5 nil)", string.Format("{0}", r));
r = e.eval("""(invoke o "I" nil)""");
Assert.Equal(string.Format("{0}", r), "5");
Assert.Equal("5", string.Format("{0}", r));
}
[Fact]