Changeset 1571


Ignore:
Timestamp:
Oct 13, 2008, 11:18:54 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #425.

Location:
trunk/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r1568 r1571  
    22
    33/*
    4   Copyright (C) 2008 Peter Johansson
     4  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    3333
    3434#include "yat/utility/DataIterator.h"
     35#include "yat/utility/FileUtil.h"
    3536#include "yat/utility/Matrix.h"
    3637#include "yat/utility/MatrixWeighted.h"
    3738#include "yat/utility/WeightIterator.h"
    3839
     40#include <fstream>
    3941#include <limits>
    4042#include <vector>
     
    122124{
    123125  suite.err() << "Testing CubicSplineNormalizer\n";
     126  std::string data(test::filename("data/cubicspline.data"));
     127  if (utility::FileUtil(data.c_str()).permissions("r")) {
     128    suite.add(false);
     129    suite.err() << "Cannot access file " << data << '\n';
     130    return;
     131  }
     132  std::ifstream data_stream(data.c_str());
     133
     134  utility::Matrix m(data_stream);
    124135}
    125136
Note: See TracChangeset for help on using the changeset viewer.