From 52b270a8d8dc533bb41083f170116a93ee10354c Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 19 Nov 2024 23:24:44 +0100 Subject: [PATCH] chore: make Object constructor internal. --- Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs | 2 +- Tests/Tests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs b/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs index 7becb79..3cc1584 100644 --- a/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs +++ b/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs @@ -248,7 +248,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp { } public class Object : Scalar { - public Object(object value) : base(value) { } + internal Object(object value) : base(value) {} public static Expression FromBase(object? o) { if (o == null) { return Boolean.FALSE; diff --git a/Tests/Tests.cs b/Tests/Tests.cs index 9c1b598..264deb7 100644 --- a/Tests/Tests.cs +++ b/Tests/Tests.cs @@ -195,7 +195,7 @@ namespace Tests public static void ObjectTest() { Executor e = new Executor(); Expression r; - e.environment.Set("o", new Lisp_Object(new O(5, false))); + e.environment.Set("o", Lisp_Object.FromBase(new O(5, false))); r = e.eval("""(haskeys o "i" "b")"""); Assert.True(((Lisp_Boolean)r).Value()); r = e.eval("""(getitems o "i" "b")""");