<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name:      test-printing.cpp
// Purpose:   Implementation for wxExtension cpp unit testing
// Author:    <NAME>
// Copyright: (c) 2015 <NAME>
////////////////////////////////////////////////////////////////////////////////

#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/extension/printing.h>
#include <wx/extension/managedframe.h>
#include <wx/extension/stc.h>
#include "test.h"

void fixture::testPrinting()
{
  CPPUNIT_ASSERT(wxExPrinting::Get() != NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get()->GetPrinter() != NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get()->GetHtmlPrinter() != NULL);
  wxExPrinting* old = wxExPrinting::Get();
  CPPUNIT_ASSERT(wxExPrinting::Get()->Set(NULL) == old);
  CPPUNIT_ASSERT(wxExPrinting::Get(false) == NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get(true) != NULL);
  
  wxExSTC* stc = new wxExSTC(m_Frame, "hello printing");
    
  new wxExPrintout(stc);
  
  stc->Print(false);
//  stc->PrintPreview(wxPreviewFrame_NonModal);
}<commit_msg>outcommented print as well<commit_after>////////////////////////////////////////////////////////////////////////////////
// Name:      test-printing.cpp
// Purpose:   Implementation for wxExtension cpp unit testing
// Author:    <NAME>
// Copyright: (c) 2015 <NAME>
////////////////////////////////////////////////////////////////////////////////

#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/extension/printing.h>
#include <wx/extension/managedframe.h>
#include <wx/extension/stc.h>
#include "test.h"

void fixture::testPrinting()
{
  CPPUNIT_ASSERT(wxExPrinting::Get() != NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get()->GetPrinter() != NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get()->GetHtmlPrinter() != NULL);
  wxExPrinting* old = wxExPrinting::Get();
  CPPUNIT_ASSERT(wxExPrinting::Get()->Set(NULL) == old);
  CPPUNIT_ASSERT(wxExPrinting::Get(false) == NULL);
  CPPUNIT_ASSERT(wxExPrinting::Get(true) != NULL);
  
  wxExSTC* stc = new wxExSTC(m_Frame, "hello printing");
    
  new wxExPrintout(stc);
  
//  stc->Print(false);
//  stc->PrintPreview(wxPreviewFrame_NonModal);
}
{'fraction_non_alphanumeric': 0.28998640688717714, 'fraction_numerical': 0.0036248300860897147, 'mean_word_length': 2.54983922829582, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, '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': '1195493', 'n_tokens_mistral': 725, 'n_tokens_neox': 701, 'n_words': 119}