/*  Copyright (C) 2009 Joshua Judson Rosen <rozzin@geekspace.com>.

    This program is free software: you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 3 as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; see the file COPYING. If not, see
    <http://www.gnu.org/licenses/> or write to:

        The Free Software Foundation, inc.
        51 Franklin Street, Fifth Floor
        Boston, MA 02110-1301
        USA
*/

#include "levenshtein.h"
#include "weights.h"

#include <string.h>

#include <assert.h>
#include <stdio.h>

int
main (int argc, char **argv)
{
  assert (argc == 3);

  printf ("levenshtein ('%s', '%s'):\n", argv[1], argv[2]);
  printf ("... => %g\n", levenshtein (argv[1], strlen (argv[1]),
                                      argv[2], strlen (argv[2]),
                                      weight_linear_normal));

  return 0;
}

