Exemplo n.º 1
0
        public void GenerateSentences_2()
        {
            var solution = new _1258_SynonymousSentences();
            var result   = solution.GenerateSentences(new List <IList <string> >()
            {
                new string[] { "a", "QrbCl" },
            }, "d QrbCl ya ya NjZQ");

            AssertHelper.AssertList(new string[] {
                "d QrbCl ya ya NjZQ",
                "d a ya ya NjZQ"
            }, result);
        }
Exemplo n.º 2
0
        public void GenerateSentences_1()
        {
            var solution = new _1258_SynonymousSentences();
            var result   = solution.GenerateSentences(new List <IList <string> >()
            {
                new string[] { "happy", "joy" },
                new string[] { "sad", "sorrow" },
                new string[] { "joy", "cheerful" },
            }, "I am happy today but was sad yesterday");

            AssertHelper.AssertList(new string[] {
                "I am cheerful today but was sad yesterday",
                "I am cheerful today but was sorrow yesterday",
                "I am happy today but was sad yesterday",
                "I am happy today but was sorrow yesterday",
                "I am joy today but was sad yesterday",
                "I am joy today but was sorrow yesterday"
            }, result);
        }