<commit_before>// <copyright file="PrintStatements.cs" company="<NAME>">
// Copyright (c) <NAME>. All rights reserved.
// </copyright>

namespace GWBas2CS.Test
{
    using FluentAssertions;
    using Xunit;

    public sealed class PrintStatements
    {
        [Fact]
        public void Empty()
        {
            const string Input = @"10 PRINT";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT("""");
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void OneNumExpr()
        {
            const string Input = @"10 PRINT A";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT(("""") + (A_n));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void OneStrExpr()
        {
            const string Input = @"10 PRINT A$";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT(("""") + (A_s));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }
    }
}<commit_msg>AdventureSample - more PRINT tests (2, 3 exprs)<commit_after>// <copyright file="PrintStatements.cs" company="<NAME>">
// Copyright (c) <NAME>. All rights reserved.
// </copyright>

namespace GWBas2CS.Test
{
    using FluentAssertions;
    using Xunit;

    public sealed class PrintStatements
    {
        [Fact]
        public void Empty()
        {
            const string Input = @"10 PRINT";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT("""");
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void OneNumExpr()
        {
            const string Input = @"10 PRINT A";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT(("""") + (A_n));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void OneStrExpr()
        {
            const string Input = @"10 PRINT A$";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT(("""") + (A_s));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void TwoMixedExpr()
        {
            const string Input = @"10 PRINT ""NUMBER"";A";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT((("""") + (""NUMBER"")) + (A_n));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }

        [Fact]
        public void ThreeMixedExpr()
        {
            const string Input = @"10 PRINT A$;"" B "";C";
            const string Expected = @"*
    private bool Main()
    {
        this.Init();
        PRINT(((("""") + (A_s)) + ("" B "")) + (C_n));
        return false;
    }
*";

            string actual = Test.Translate("MyProg", Input);

            actual.Should().Match(Expected);
        }
    }
}
{'fraction_non_alphanumeric': 0.14669591445023306, 'fraction_numerical': 0.005483959418700302, 'mean_word_length': 1.6038543897216273, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3632095', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1032, 'n_words': 257}