WordPress.org

Make WordPress Core

Changeset 219 in tests


Ignore:
Timestamp:
04/20/2009 03:49:28 PM (9 years ago)
Author:
nbachiyski
Message:

Add deep code handling test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r213 r219  
    212212        $this->assertEquals('<pre><code></code>--</pre>', wptexturize('<pre><code></code>--</pre>'));
    213213    }
     214   
     215    function test_code() {
     216        $this->assertEquals('<code>---</code>', wptexturize('<code>---</code>'));
     217        $this->assertEquals('<code>href="baba"</code> &#8220;baba&#8221;', wptexturize('<code>href="baba"</code> "baba"'));
     218        $this->assertEquals(
     219            '<code>curl -s <a href="http://x/">baba</a> | grep sfive | cut -d "\"" -f 10 &gt; topmp3.txt</code>',
     220            wptexturize('<code>curl -s <a href="http://x/">baba</a> | grep sfive | cut -d "\"" -f 10 &gt; topmp3.txt</code>'));
     221    }
     222   
     223
    214224}
    215225
Note: See TracChangeset for help on using the changeset viewer.