paulirwin_lillisp/Lillisp.Tests/DotNetEnumTests.cs
using Lillisp.Core;

namespace Lillisp.Tests;

public class DotNetEnumTests
{
    [Fact]
    public void BasicEnumTest()
    {
        var runtime = new LillispRuntime();

        var program = "(defenum MyEnum Foo Bar Baz)\n(cast MyEnum/Bar Int32)";

        var result = runtime.EvaluateProgram(program);

        Assert.NotNull(result);
        Assert.Equal(1, result);
    }
}