<commit_before>﻿// Nu Game Engine.
// Copyright (C) <NAME>, 2013-2015.

namespace Nu.Tests
open System
open System.IO
open System.Xml
open OpenTK
open Xunit
open Prime
open Nu
module EffectTests =

    let readEffectWorks () =
        Math.initTypeConverters ()
        let effectStr =
           "[Sprite |
             [Esper |
              [0 | 10] |
              [[Linear2 | [Position | 0, 0 | 10, 10]] |
               [Linear2 | [Size | 0, 0 | 10, 10]]]]]"
        let effect = (AlgebraicConverter typeof<Effect>).ConvertFromString effectStr :?> Effect
        match effect with Sprite sprite -> Assert.Equal<string> ("Esper", sprite.Name)<commit_msg>Now again working on Effect system.<commit_after>﻿// Nu Game Engine.
// Copyright (C) <NAME>, 2013-2015.

namespace Nu.Tests
open System
open System.IO
open System.Xml
open OpenTK
open Xunit
open Prime
open Nu
module EffectTests =

    let readEffectWorks () =
        Math.initTypeConverters ()
        let effectStr =
           "[Sprite
             [Esper [0 10]
              [[Linear2 [Position [0 0] [10 10]]]
               [Linear2 [Size [0 0] [10 10]]]]]]"
        let effect = (AlgebraicConverter typeof<Effect>).ConvertFromString effectStr :?> Effect
        match effect with Sprite sprite -> Assert.Equal<string> ("Esper", sprite.Name)
{'fraction_non_alphanumeric': 0.11773700305810397, 'fraction_numerical': 0.0382262996941896, 'mean_word_length': 2.426701570680628, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '2095427', 'n_tokens_mistral': 428, 'n_tokens_neox': 375, 'n_words': 126}